NavMesh
敵に弾がヒットした際、ヒットバックアニメーションを再生し、NavMeshを一時停止。 StartCoroutineでコール。 public IEnumerator getHit () { this.GetComponent<Animator>().SetTrigger("GetHit1"); NavMeshPath path = new NavMeshPath(); if (agent.hasPath && cur</animator>…
敵に弾がヒットした際、ヒットバックアニメーションを再生し、NavMeshを一時停止。 StartCoroutineでコール。 public IEnumerator getHit () { this.GetComponent<Animator>().SetTrigger("GetHit1"); NavMeshPath path = new NavMeshPath(); if (agent.hasPath && cur</animator>…