Hero.setLife C# (CSharp) 메소드

setLife() 공개 메소드

public setLife ( float life ) : void
life float
리턴 void
	public void setLife(float life) {
    _lifeManager.setLife(life);
  }
    

Usage Example

예제 #1
0
    // Use this for initialization
    void Start()
    {
        //TODO trigger this after resize
        hero = GameObject.Find ("Hero").GetComponent<Hero>();
        GameObject lifeIndicator = GameObject.Find ("LifeIndicator");
        Transform progressBar = lifeIndicator.transform.Find("ProgressBar");
        _foreground = progressBar.transform.Find("Foreground");
        _initialScale = _foreground.localScale;

        hero.setLife(startLife);
    }
All Usage Examples Of Hero::setLife