private void Awake()
    {
        fpsMovement = GetComponent <FirstPersonMovement>();
        fpsView     = GetComponentInChildren <FirstPersonLook>();

        camT = fpsView.transform;

        TerminalGUI.OnGUIOpen  += OnGUIEnter;
        TerminalGUI.OnGUIClose += OnGUIExit;
        Debug.Log("Subscribed events.");
    }
Пример #2
0
 // Start is called before the first frame update
 void Start()
 {
     firstPersonMovement = GetComponent <FirstPersonMovement>();
     firstPersonLook     = GetComponentInChildren <FirstPersonLook>();
 }
 // Grab a reference to the FirstPersonLook script in order to freeze look movement while craft menu is showing
 void Start()
 {
     firstPersonLook     = FindObjectsOfType <FirstPersonLook>()[0];
     craftMenuInnerLayer = GetComponentInChildren <CraftMenuInnerLayer>();
     //craftMenuInnerLayer.gameObject.SetActive(false);
 }
Пример #4
0
 private void Start()
 {
     firstPersonLook = fpsController.GetComponentInChildren <FirstPersonLook>();
     Cursor.visible  = false;
 }