protected void Awake() { if (instance != null) { Destroy(gameObject); } else { instance = this; } m_player = GetComponent <Player>(); }
protected void OnDestroy() { instance = null; }