Ejemplo 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();
 }
Ejemplo n.º 2
0
 void Awake()
 {
     if (instance != null)
     {
         Debug.Log("There are already have FollowerSystem");
     }
     else
     {
         instance = this;
     }
 }
Ejemplo n.º 3
0
 void Start()
 {
     followerSystem = FollowerSystem.instance;
 }