void Start()
    {
        player = GameObject.FindGameObjectWithTag(TagManager.PLAYER);
        mainCamera = GameObject.FindGameObjectWithTag(TagManager.MAIN_CAMERA);
        cameraControl = mainCamera.GetComponent<Camera_Escape>();
        hudLogic = GameObject.FindGameObjectWithTag(TagManager.GAME_CONTROLLER).GetComponent<ReplacementHUDLogic>();
        playerMovement = player.GetComponent<PLayerMovement>();
        playerAutomaticMovement = player.GetComponent<AutomaticMovement>();

        rotationSpeed = 6f;
        inTrigger = false;
    }
Exemple #2
0
 private void Start()
 {
     player = FindObjectOfType <PLayerMovement>();
     form.SetActive(false);
 }