void Awake()
    {
        m_characterController = GetComponent<CharacterController>();
        if(m_characterController == null)
            Debug.LogError("Missing CharacterController component");

        m_skillShotAttacker = GetComponent<SkillShotAttacker>();
        if(m_skillShotAttacker == null)
            Debug.LogError("Missing SkillShotAttacker component");

        m_lookDir = Vector3.forward;

        StartCoroutine(InputPoll());
    }
Exemple #2
0
    void Awake()
    {
        m_characterController = GetComponent <CharacterController>();
        if (m_characterController == null)
        {
            Debug.LogError("Missing CharacterController component");
        }

        m_skillShotAttacker = GetComponent <SkillShotAttacker>();
        if (m_skillShotAttacker == null)
        {
            Debug.LogError("Missing SkillShotAttacker component");
        }

        m_lookDir = Vector3.forward;

        StartCoroutine(InputPoll());
    }