コード例 #1
0
 void Awake()
 {
     godInventory = GameObject.Find("GOD").GetComponent<PersistentInventory>();
     playerInv = GameObject.FindWithTag("PlayerShip").GetComponent<PlayerInventory>();
     player = GameObject.FindGameObjectWithTag("Player");
     cameraMove = player.GetComponent<CameraMove>();
     playerCharController = player.GetComponent<CharacterController>();
     playerMotor = player.GetComponent<CharacterMotor>();
     playerFPS = player.GetComponent<FPSInputController>();
     playerMouseLook = player.GetComponent<MouseLook>();
 }
コード例 #2
0
 void Awake()
 {
     god = GameObject.Find("GOD");
     godInventory = god.GetComponent<PersistentInventory>();
 }