Esempio n. 1
0
 void OnDisable()
 {
     Object[] cameras = GameObject.FindObjectsOfType(typeof(OutlineEffect));
     foreach (Object c in cameras)
     {
         OutlineEffect effect = c as OutlineEffect;
         effect.RemoveOutline(this);
     }
 }
Esempio n. 2
0
        private void Awake()
        {
            if (Instance != null)
            {
                Destroy(this);
                throw new System.Exception("you can only have one outline camera in the scene");
            }

            Instance = this;
        }
Esempio n. 3
0
 private void Awake()
 {
     m_instance = this;
 }