void OnDisable() { if (Instance == this) { Instance = null; } }
void OnEnable() { Instance = this; mProj = gameObject.GetComponent <ArrowProjector>(); if (mProj == null) { mProj = gameObject.AddComponent <ArrowProjector>(); } }
void OnDisable() { if (Instance == this) Instance = null; }
void OnEnable() { Instance = this; mProj = gameObject.GetComponent<ArrowProjector>(); if (mProj == null) mProj = gameObject.AddComponent<ArrowProjector>(); }