protected void Awake() { characterPhysics = GetComponent <Character_Physics>(); dash = GetComponent <Dash>(); jump = GetComponent <Jump>(); wallInteraction = GetComponent <Wall_Interaction>(); player = GameObject.FindGameObjectWithTag("Player").transform; }
private void Awake() { if (doublePressTime == 0f) { doublePressTime = 0.25f; } characterPhysics = GetComponent <Player_Physics>(); wallInteraction = GetComponent <Wall_Interaction>(); dash = GetComponent <Dash>(); jump = GetComponent <Jump>(); lightAttack = GetComponent <Light_Attack>(); stunTarget = GetComponent <Stun_Target>(); immobilizeTarget = GetComponent <Immobilize_Target>(); throwUpTarget = GetComponent <Throw_Up_Target>(); Cursor.lockState = CursorLockMode.Locked; }