Beispiel #1
0
    protected void Start()
    {
        GameObject lifeUIObj = Instantiate(lifeUIPrefab, GameController.lifeUICanvas.transform);

        _lifeUI = lifeUIObj.GetComponent <LifeUi>();
        _lifeUI.SetParent(this.gameObject);
    }
Beispiel #2
0
    protected void Awake()
    {
        GameObject lifeUIObj = Instantiate(lifeUIPrefab);

        _LifeUI = lifeUIObj.GetComponent <LifeUi>();
        _LifeUI.SetParent(this.gameObject);

        _speed = _baseSpeed;
    }