zoukankan      html  css  js  c++  java
  • 投篮球

    using UnityEngine;
    using System.Collections;

    public class SportManAni : MonoBehaviour {

        // Use this for initialization
        void Start () {
        
        }
        
        bool CanControl = true;  //当键盘弹起的时候,篮球运动员是否处于可控状态
        
        // Update is called once per frame
        void Update () {
        
            if(Input.GetButtonDown("Play"))
            {
                gameObject.animation.PlayQueued("Aim");
            }
            else if(Input.GetButtonUp("Play") && CanControl)
            {
                gameObject.animation.PlayQueued("Fire");
                gameObject.animation.PlayQueued("Idle");
                
                CanControl = false;
            }
            
            CanControl = true;
        }
    }

  • 相关阅读:
    子程序定义-3
    子程序定义-2
    子程序定义-1
    MQ报 AMQ9259
    观nginx与lvs负载均衡的较量
    绑定变量值长度不一致,mismatch问题
    perl-printf 函数
    perl 运算符
    强制让SQL走谓词推入
    PGA概念
  • 原文地址:https://www.cnblogs.com/JimmyCode/p/3156633.html
Copyright © 2011-2022 走看看