private void Awake() { m_Motor = GetComponent <PlatformMotor2D>(); m_InputDriver = GetComponent <BaseInputDriver>(); if (m_InputDriver == null) { Debug.LogWarning("An InputDriver is needed for a PlatformController2D"); } }
private void Reset() { m_Motor = GetComponent <PlatformMotor2D>(); }