Ejemplo 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);
     }
 }
Ejemplo n.º 2
0
 public void AddFollower(Follower theFollower)
 {
     if (nextInLine)
     {
         nextInLine.AddFollower(theFollower);
     }
     else
     {
         nextInLine = theFollower;
         nextInLine.InitializeSteps(transform.position);
     }
 }