public void Activate(bool val) { if (val) { GameCamera.AddTarget(transform); } else { GameCamera.RemoveTarget(transform); } }
private void OnDestroy() { mInstance = null; }
/// <summary> /// Keep a singleton reference. /// </summary> private void Awake() { mInstance = this; }
/// <summary> /// Keep a singleton reference. /// </summary> private void Awake() { mInstance = this; }
private void OnDestroy() { mInstance = null; }