public void LSkill3()
    {
        Debug.Log("LSkill3 activated");

        CharacterController.ActivePlayer().GetComponent <LuberMan> ().makeRoar();
        CharacterController.ActivePlayer().GetComponent <LuberMan> ().formatPlayer();
    }
 public void WSkill4()
 {
     Debug.Log("wSkill4 activated");
     CharacterController.ActivePlayer().GetComponent <Wizard> ().curseIdiots();
     CharacterController.ActivePlayer().GetComponent <Wizard> ().formatPlayer();
     CharacterController.ActivePlayer().GetComponent <Animation> ().Play("Magic Attack3", PlayMode.StopSameLayer);
     CharacterController.ActivePlayer().GetComponent <Animation> ().PlayQueued("Idle1");
 }
 public void WSkill3()
 {
     Debug.Log("wSkill3 activated");
     CharacterController.ActivePlayer().GetComponent <Wizard> ().healEverybody();
     CharacterController.ActivePlayer().GetComponent <Wizard> ().formatPlayer();
     CharacterController.ActivePlayer().GetComponent <Animation> ().Play("Magic Attack2", PlayMode.StopSameLayer);
     CharacterController.ActivePlayer().GetComponent <Animation> ().PlayQueued("Idle1");
 }
 public void WSkill2()
 {
     Debug.Log("wSkill2 activated");
     CharacterController.ActivePlayer().GetComponent <Wizard> ().throwFire();
     WizardAttack();
     CharacterController.ActivePlayer().GetComponent <Animation> ().Play("Magic Attack", PlayMode.StopSameLayer);
     CharacterController.ActivePlayer().GetComponent <Animation> ().PlayQueued("Idle1");
 }
 public void WSkill1()
 {
     Debug.Log("wSkill1 activated");
     CharacterController.ActivePlayer().GetComponent <Wizard> ().fuckingMeteor();
     CharacterController.ActivePlayer().GetComponent <Wizard> ().formatPlayer();
     CharacterController.ActivePlayer().GetComponent <Animation> ().Play("Attack", PlayMode.StopSameLayer);
     CharacterController.ActivePlayer().GetComponent <Animation> ().PlayQueued("Idle1");
 }
예제 #6
0
    public void stealMana()
    {
        GameObject fuckedPlayer = CharacterController.ActivePlayer();
        int        stolen       = (int)(fuckedPlayer.GetComponent <CharacterController>().Mana *0.2f);

        fuckedPlayer.GetComponent <CharacterController> ().Mana -= stolen;
        GetComponent <EnemyController> ().Mana -= 25;
        GetComponent <EnemyController> ().Mana += stolen + stolen;
    }
    public void LumberAttack()
    {
        GameObject tempPlayer = CharacterController.ActivePlayer(),
                   tempEnemy  = EnemyController.ActiveEnemy();

        Debug.Log(tempPlayer.name + "has attacked " + tempEnemy.name);
        if (Random.value < tempPlayer.GetComponent <LuberMan> ().CritRate)
        {
            tempEnemy.GetComponent <EnemyController> ().Health -= tempPlayer.GetComponent <LuberMan> ().Damage * 2;
        }
        else
        {
            tempEnemy.GetComponent <EnemyController> ().Health -= tempPlayer.GetComponent <LuberMan> ().Damage;
        }
        tempPlayer.GetComponent <LuberMan> ().formatPlayer();
    }
 public void LSkill4()
 {
     Debug.Log("LSkill4 activated");
     CharacterController.ActivePlayer().GetComponent <LuberMan> ().healYourself();
     CharacterController.ActivePlayer().GetComponent <LuberMan> ().formatPlayer();
 }
 public void LSkill2()
 {
     Debug.Log("LSkill2 activated");
     CharacterController.ActivePlayer().GetComponent <LuberMan> ().throwAxe();
     LumberAttack();
 }
 public void LSkill1()
 {
     CharacterController.ActivePlayer().GetComponent <LuberMan> ().hitWithAxe();
     Debug.Log("LSkill activated");
     LumberAttack();
 }