Esempio n. 1
0
 // Start is called before the first frame update
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
Esempio n. 2
0
    void Awake()
    {
        socket  = GameObject.Find("SocketIO").GetComponent <SocketIOComponent>();
        uimager = GameObject.Find("UiManger").GetComponent <UiManger>();

        ClientStatus.GameOver = false;
    }
Esempio n. 3
0
 // Start is called before the first frame update
 void Start()
 {
     /// transform.position =new Vector3(2,0,0);
     _laserAudio = GetComponent <AudioSource>();
     uiManger    = GameObject.Find("Canvas").GetComponent <UiManger>();
     uiManger.UpdateLives(lives);
 }
Esempio n. 4
0
 void Start()
 {
     uiManger = GameObject.Find("Canvas").GetComponent <UiManger>();
 }