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

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