예제 #1
0
    public void random_idle()
    {
        switch (Random.Range(0, 4))

        {
        case 0:
            current_state = animation_type.idle1;
            break;

        case 1:
            current_state = animation_type.idle2;
            break;

        case 2:
            current_state = animation_type.idle3;
            break;

        case 3:
            current_state = animation_type.idle4;
            break;

        default:
            current_state = animation_type.idle2;
            break;
        }
    }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     current_state = animation_type.idle2;
     this.transform.localRotation = top_rotation.localRotation;
     playSound = true;
 }