TAPTAPTAPTAP
8/10/2013 - 1:55 PM

From http://answers.unity3d.com/questions/331268/a-simple-animation-clip-scripting-control-example.html Pozmáčknutí tlačítka spustí animaci

přehraj animaci po stisku tlačítka #unity3d #c#

using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {   
  void Update() {       
    if (Input.GetButtonUp("Fire1")) 
    {          animation.Play();        }    }}