//*******************************// // MonoBehaviour Functions // //*******************************// private void Start() { m_controller = FindObjectOfType <AreaController>(); m_manager = AreaTransitionManager.Instance; if (!m_controller) { Debug.LogErrorFormat("{0}: Could not find area controller!", name); } }
//*******************************// // MonoBehaviour Functions // //*******************************// private void Awake() { if (Instance == null) { Instance = this; DontDestroyOnLoad(gameObject); } else { Destroy(this); } m_fader = GetComponent <CanvasGroupFader>(); }
//*******************************// // MonoBehaviour Functions // //*******************************// private void Awake() { if (Instance == null) { Instance = this; DontDestroyOnLoad(gameObject); } else { Destroy(this); } m_formatter = new BinaryFormatter(); m_savePath = Application.persistentDataPath + "/"; m_areaTransitionManager = FindObjectOfType <AreaTransitionManager>(); }