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