Esempio n. 1
0
 public void AddFollower(Follower theFollower) {
     followerCount++;
     theFollower.numberInLine = followerCount;
     tail = theFollower.transform;
     if (follower) {
         follower.AddFollower(theFollower);
     }
     else {
         follower = theFollower;
         follower.InitializeSteps(transform.position);
     }
 }
Esempio n. 2
0
 public void AddFollower(Follower theFollower)
 {
     if (nextInLine)
     {
         nextInLine.AddFollower(theFollower);
     }
     else
     {
         nextInLine = theFollower;
         nextInLine.InitializeSteps(transform.position);
     }
 }