// 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; }
// Start is called before the first frame update void Start() { chatManager = GameObject.FindGameObjectWithTag("ChatManager").GetComponent <ChatBoxManager>(); }
private void Start() { Instance = this; }