Example #1
0
    private void Start()
    {
        if (useBaseControl)
        {
            defaultSpeed = speed;

            rb = GetComponent <Rigidbody>();


            Cc = GetComponent <CharacterController>();
        }
        audioS          = GetComponent <AudioSource>();
        managerDialogue = FindObjectOfType <Dialogue_Manager>();
        mainCamera      = CinemachineBrain.FindObjectOfType <CinemachineBrain>();
        ui = UImanager.FindObjectOfType <UImanager>();

        // backVector = new Vector3(0, camRoot.position.y + 180, 0);
    }