Example #1
0
 void Start()
 {
     player         = GameObject.FindGameObjectWithTag(playerTag).transform;
     followerSystem = FollowerSystem.instance;
     floder         = GameObject.FindGameObjectWithTag("Follower").transform;
     audioSoure     = GetComponent <AudioSource>();
     boxCollider    = GetComponent <BoxCollider>();
     LockRotation();
 }
Example #2
0
 void Awake()
 {
     if (instance != null)
     {
         Debug.Log("There are already have FollowerSystem");
     }
     else
     {
         instance = this;
     }
 }
Example #3
0
 void Start()
 {
     followerSystem = FollowerSystem.instance;
 }