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

        private void Awake()
        {
            mInstance = this;
        }
Exemple #5
0
 private void OnDestroy()
 {
     mInstance = null;
 }