Inheritance: MonoBehaviour
コード例 #1
0
 void Awake()
 {
     if (Instance)
     {
         Destroy(this);
     }
     else
     {
         Instance = this;
     }
     this.hitMarker = GetComponent<RawImage>();
     this.hitMarker.enabled = false;
 }
コード例 #2
0
 void Awake()
 {
     if (Instance)
     {
         Destroy(this);
     }
     else
     {
         Instance = this;
     }
     this.hitMarker         = GetComponent <RawImage>();
     this.hitMarker.enabled = false;
 }