예제 #1
0
    public void SwitchMode()
    {
        sounds.PlayEffect(sounds.changeMode);
        CurrentMode = (Mode)((int)++CurrentMode % 2);

        cursor.ChangueCursor((int)CurrentMode);

        aura.gameObject.SetActive(CurrentMode == Mode.MAGE);
    }
예제 #2
0
    //private Animator animator;

    // Use this for initialization
    private void Start()
    {
        cursor  = GetComponent <MouseCursor>();
        shooter = GetComponent <Shooter>();
        if (!shooter)
        {
            Debug.Log("Dependence not found: shooter");
        }
        if (!(meleeAttacker = GetComponent <MeleeAttacker>()))
        {
            Debug.Log("Dependence not found: meleeAttacker");
        }

        if (!(shield = GetComponent <Shield>()))
        {
            Debug.Log("Dependence not found: shield");
        }

        skillHealing = GetComponent <SkillHealing>();
        jumper       = GetComponent <SkillJumper>();
        sounds       = GetComponentInChildren <AttackSounds>();
        //animator = transform.GetChild(1).GetComponent<Animator>();
        cursor.ChangueCursor((int)CurrentMode);
    }