private void Awake() { m_MoveBehaviour = GetComponent <MovePlayer>(); m_JumpBehaviour = GetComponent <JumpPlayer>(); m_DashBehaviour = GetComponent <DashPlayer>(); m_AttackBehaviour = GetComponent <AttackPlayer>(); //m_PlayerInput = GetComponent<PlayerInput>(); //m_JumpAction = m_PlayerInput.actions["Jump"]; }
private void Awake() { controller = GetComponent <CharacterController>(); player = GetComponent <Player>(); jump = GetComponent <JumpPlayer>(); attack = GetComponent <MainAttackPlayer>(); touchControl = FindObjectOfType <TouchControl>(); playerInputConfiguration = GetComponent <PlayerInputConfiguration>(); maxMoveSpeed = moveSpeed; InitializeInput(); camTransform = Camera.main.transform; }
void Start() { animate = GetComponent<SpriteHandler>(); Jump = GetComponent<JumpPlayer>(); }
void Start() { instance = this; rb = GetComponent <Rigidbody>(); }