Beispiel #1
0
    void Awake()
    {
        roundCount = 0;
        p1Win      = 0;
        p2Win      = 0;

        ScreenGraphics = GetComponent <Animator>();
        announcer      = GetComponent <AnnouncerVoice>();
    }
Beispiel #2
0
 private void MakeSingleton()
 {
     if (instance != null && instance != this)
     {
         Destroy(gameObject);
     }
     else
     {
         instance = this;
     }
 }
 // Start is called before the first frame update
 void Start()
 {
     instance = this;
 }