GAME DEVELOP USING Unity 3D: import asset store unity chan import asset from vuforia database 3d image animator connect

build/run c#

using System.Collections; using System.Collections.Generic; using UnityEngine;

public class player : MonoBehaviour { public Animator anim;

// Use this for initialization
void Start () {
    anim = GetComponent<Animator>();
}

// Update is called once per frame
void Update () {
    if(Input.GetKeyDown("1"))
    {
        anim.Play("WAIT01",-1,0f);

    }
    if (Input.GetKeyDown("2"))
    {
        anim.Play("WAIT02", -1, 0f);

    }
    if (Input.GetKeyDown("3"))
    {
        anim.Play("WAIT03", -1, 0f);

    }
    if (Input.GetKeyDown("4"))
    {
        anim.Play("WAIT04", -1, 0f);

    }


}

}

Built With

Share this project:

Updates