Search Unity

animation.play (GateUp) the Gate position

Discussion in 'Animation' started by branek42, Oct 21, 2014.

  1. branek42

    branek42

    Joined:
    Oct 10, 2013
    Posts:
    76
    hello please help GateUp play animation script for gate the gate position


    function OnTriggerEnter(other :Collider){
    if (!toggleGUI) return;
    if (other.gameObject.tag == "cube")

    GameObject.Find("Gate").animation.Play("GateUp");