Beispiel #1
0
    public TargetMoveAnimation Move(Unit unit, Vector3 target)
    {
        TargetMoveAnimation tma = Instantiate(targetMoveAnimationPrefab).GetComponent <TargetMoveAnimation>();

        tma.destroyAfter = true;
        tma.Init(unit, target);
        return(tma);
    }
Beispiel #2
0
 void Start()
 {
     selectRectangle = gameObject.GetComponent <SelectRectangle>();
     moveCross       = gameObject.GetComponentInChildren <TargetMoveAnimation>();
 }