2015-05-20から1日間の記事一覧
Easy Weaponsでリロード中に何かを実行する。 Easy Weapons 3.0.2Weapon.cs SendMessageUpwards("OnEasyWeaponsReload", SendMessageOptions.DontRequireReceiver); myReloading.cs public IEnumerator OnEasyWeaponsReload () { Debug.Log("Now Reloading!!…
敵に弾がヒットした際、ヒットバックアニメーションを再生し、NavMeshを一時停止。 StartCoroutineでコール。 public IEnumerator getHit () { this.GetComponent<Animator>().SetTrigger("GetHit1"); NavMeshPath path = new NavMeshPath(); if (agent.hasPath && cur</animator>…