public TargetMoveAnimation Move(Unit unit, Vector3 target) { TargetMoveAnimation tma = Instantiate(targetMoveAnimationPrefab).GetComponent <TargetMoveAnimation>(); tma.destroyAfter = true; tma.Init(unit, target); return(tma); }
void Start() { selectRectangle = gameObject.GetComponent <SelectRectangle>(); moveCross = gameObject.GetComponentInChildren <TargetMoveAnimation>(); }