コード例 #1
0
ファイル: NavMesh_Zomb.cs プロジェクト: lukeFent/VR_GAME
 // Start is called before the first frame update
 void Start()
 {
     player     = FindObjectOfType <CheapFirstPersonShooter>();
     zombie     = GetComponent <ZombInteract>();
     bodyGuards = FindObjectsOfType <BodyInteract>();
     HeadToClosestBody(GetClosestBody().position);
 }
コード例 #2
0
ファイル: GunClass.cs プロジェクト: lukeFent/VR_GAME
 private void Start()
 {
     playerScript = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <CheapFirstPersonShooter>();
 }