예제 #1
0
    void Awake()
    {
        if (WizardAvatar != null)
        {
            m_wizardBehaviour      = WizardAvatar.GetComponent <WizardBehaviour>();
            m_wizardDeathBehaviour = WizardAvatar.GetComponent <WizardDeathBehaviour>();
            m_wizardBehaviour.SetWizardType(true, true);
        }

        foreach (var a in m_alphabet)
        {
            try
            {
                m_keyCodes.Add((KeyCode)Enum.Parse(typeof(KeyCode), a.ToString(), true));
            }
            catch (Exception)
            {
                Debug.LogError("Unable to parse: " + a);
            }
        }
    }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     m_wizardBehaviour = GetComponent <WizardBehaviour>();
     m_wizardBehaviour.SetWizardType(false, false);
     StartCoroutine(AttackRoutine());
 }