public void SetParams(Sprite type, Transform data, int level) { Level = level; this.type = type; size[0] = 5; size[1] = 4; SetStats(); deltaPos = data; targetPosition = deltaPos.position; Soldiers.ForEach(x => x.MoveUnit()); }
public void SetStartPos(Vector3 pos) { mNavMeshAgent.Warp(pos); Soldiers.ForEach(x => x.SetStartPos(pos)); }
public void SetTargetLocation(Vector3 targPos) { Soldiers.ForEach(x => x.MoveUnit()); targetPosition = targPos; }