Exemple #1
0
    public void ArriveOn(Transform targetTrans)
    {
        if (!behaviours.Contains(Arrive.GetInstance()))
        {
            behaviours.Add(Arrive.GetInstance());
        }

        TargetTrans = targetTrans;
    }
Exemple #2
0
    public void ArriveOn(Vector3 targetPos)
    {
        if (!behaviours.Contains(Arrive.GetInstance()))
        {
            behaviours.Add(Arrive.GetInstance());
        }

        TargetTrans = null;
        TargetPos   = targetPos;
    }
Exemple #3
0
 public void ArriveOff()
 {
     behaviours.Remove(Arrive.GetInstance());
 }