コード例 #1
0
 // Use this for initialization
 void Start()
 {
     smoothAnim = GetComponent<SmoothAnimScript>();
     if (!crouched)
     {
         InvokeRepeating("Moving", 0.5f, 0.3f);
     }
 }
コード例 #2
0
ファイル: ClayFootsteps.cs プロジェクト: NealKaviratna/CS4455
 // Use this for initialization
 void Start()
 {
     charController = GetComponent<CharacterController>();
     workaround = true;
     smoothAnim = GetComponent<SmoothAnimScript>();
     lookAtMouse = GetComponent<LookAtMouse>();
     if (!crouched)
     {
         InvokeRepeating("Moving", 0.5f, 0.3f);
     }
 }
コード例 #3
0
ファイル: MeleeInput.cs プロジェクト: NealKaviratna/CS4455
 // Use this for initialization
 void Start()
 {
     inputCooldownlength = 0.5f;
     inputCooldown = inputCooldownlength;
     animScript = GetComponent<SmoothAnimScript>();
 }
コード例 #4
0
 // Use this for initialization
 void Start()
 {
     //player = GameObject.FindGameObjectWithTag ("Player");
     //playerHealth = player.GetComponent<PlayerHealth> ();
     smooth = player.GetComponent<SmoothAnimScript> ();
 }