void Awake() { mover = GetComponent <Mover>(); rb = GetComponent <Rigidbody>(); ceilingDetector = GetComponent <CeilingDetector>(); rb.freezeRotation = true; rb.useGravity = false; rb.freezeRotation = true; inputMaster = new InputMaster(); characterInput = FindObjectOfType <PlayerKeyboardInput>(); playerController = GetComponent <PlayerController>(); animator = GetComponent <Animator>(); cameraTransform = Camera.main.transform; GetComponent <PlayerNamePlate>().Instantiate(); }
public PlayerDualInput() : base() { keyboardInput = new PlayerKeyboardInput(); gamepadInput = new PlayerGamepadInput(0); }