Example #1
0
    // Use this for initialization
    void Start()
    {
        m_PunchHitBox.SetActive(false);

        m_AnimationController = GetComponent <Scr_AnimationController>();
        m_PlayerState         = GetComponent <Scr_PlayerStateController>();
        m_Input = GetComponent <Scr_Input>();
    }
    private void Awake()
    {
        m_OriginalPunchingPower = gameObject.GetComponent <Scr_Combat>().GetPunchingPower();
        m_OriginalSpeed         = gameObject.GetComponent <Scr_CharacterController>().GetSpeed();
        m_OriginalNrOfMaxJumps  = gameObject.GetComponent <Scr_CharacterController>().GetMaxJumps();

        m_OriginalPowerupTimer = m_PowerupTimer;

        m_PlayerState = GetComponent <Scr_PlayerStateController>();
        m_Input       = GetComponent <Scr_Input>();
    }