Inheritance: MonoBehaviour
 void Awake()
 {
     if (Instance)
     {
         Destroy(this);
     }
     else
     {
         Instance = this;
     }
     this.hitMarker = GetComponent<RawImage>();
     this.hitMarker.enabled = false;
 }
Ejemplo n.º 2
0
 void Awake()
 {
     if (Instance)
     {
         Destroy(this);
     }
     else
     {
         Instance = this;
     }
     this.hitMarker         = GetComponent <RawImage>();
     this.hitMarker.enabled = false;
 }