// Start is called before the first frame update void Awake() { if (instance == null) { instance = this; } }
void Awake() { socket = GameObject.Find("SocketIO").GetComponent <SocketIOComponent>(); uimager = GameObject.Find("UiManger").GetComponent <UiManger>(); ClientStatus.GameOver = false; }
// 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); }
void Start() { uiManger = GameObject.Find("Canvas").GetComponent <UiManger>(); }