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>(); }
void Awake() { god = GameObject.Find("GOD"); godInventory = god.GetComponent<PersistentInventory>(); }