protected void Start() { GameObject lifeUIObj = Instantiate(lifeUIPrefab, GameController.lifeUICanvas.transform); _lifeUI = lifeUIObj.GetComponent <LifeUi>(); _lifeUI.SetParent(this.gameObject); }
protected void Awake() { GameObject lifeUIObj = Instantiate(lifeUIPrefab); _LifeUI = lifeUIObj.GetComponent <LifeUi>(); _LifeUI.SetParent(this.gameObject); _speed = _baseSpeed; }