Esempio n. 1
0
    /// <summary>
    /// Will End the Game
    /// </summary>
    public void GameOver()
    {
        //Grab the Animator from the Canvas and Trigger the Game Over
        AnimationMethods.setAnimationTypeAndValue(Animation.GameOver, GameObject.Find("HUDCanvas").GetComponent <Animator>(), "");

        //TODO Add Continue??
        gameOver = true;
        gameObject.AddComponent <GameOver>();
    }
Esempio n. 2
0
 /// <summary>
 /// Will Animate the Unit with the supplied values
 /// </summary>
 /// <param name="animation">The Animation for the Unit</param>
 /// <param name="value">The value for the Animation</param>
 public void Animate(Animation animation, object value)
 {
     AnimationMethods.setAnimationTypeAndValue(animation, Animator, value);
 }
Esempio n. 3
0
 public void AnimateOnPickup()
 {
     AnimationMethods.setAnimationTypeAndValue(Animation.Collide, GetComponent <Animator>(), true);
 }