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