fix navmesh no find
cringe unity instantiate C# + java cringe operator overloading making things not clea renough
This commit is contained in:
parent
f8c859ed96
commit
769264c79b
4 changed files with 25 additions and 7 deletions
|
@ -43,8 +43,7 @@ public class UnitButton : MonoBehaviour
|
|||
void PlaceUnit()
|
||||
{
|
||||
Vector3 mousePos = unitPlacement.MapPosition();
|
||||
GameObject go = Instantiate(unitPrefab);
|
||||
go.transform.position = mousePos;
|
||||
GameObject go = Instantiate(unitPrefab, mousePos, Quaternion.identity);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue