Esempio n. 1
0
 // Start is called before the first frame update
 void Start()
 {
     controller   = GetComponent <CharacterController>();
     manager      = GameObject.FindGameObjectWithTag("Manager").GetComponent <FarPersonManager>();
     chatManager  = GameObject.FindGameObjectWithTag("ChatManager").GetComponent <ChatBoxManager>();
     doorsManager = GameObject.FindGameObjectWithTag("DoorsManager").GetComponent <DoorsManager>();
 }
 private void Start()
 {
     if (Instance != null)
     {
         return;
     }
     Instance = this;
 }
Esempio n. 3
0
 // Start is called before the first frame update
 void Start()
 {
     chatManager = GameObject.FindGameObjectWithTag("ChatManager").GetComponent <ChatBoxManager>();
 }
 private void Start()
 {
     Instance = this;
 }