Exemple #1
0
    private void Start()
    {
        m_Player   = GetComponent <UnitPlayer>();
        m_Animator = GetComponent <Animator>();
        m_Player.SubscribeToBeingAttackedEvent(this);

        if (Application.isMobilePlatform)
        {
            m_InputMode = new InputMode_Movement();
        }
        else
        {
            m_InputMode = new InputMode_MovementDebug();
        }
    }