Exemplo n.º 1
0
    private IEnumerator MovingSkills()
    {
        while (!movingSkillRunning)
        {
            switch (Random.Range(0, 3))
            {
            case 0:
                Skill om = new OrionMove();
                om_Behaviour.Use(Enemy);
                movingSkillRunning = true;
                yield return(new WaitForSeconds(om.SkillCoolDown));

                movingSkillRunning = false;
                break;

            case 1:
                Skill tel = new Teleporter();
                tel_Behaviour.Use(Enemy);
                movingSkillRunning = true;
                yield return(new WaitForSeconds(tel.SkillCoolDown));

                movingSkillRunning = false;
                break;

            case 2:
                Skill cir = new CircleMove();
                StartCoroutine(circle_Move_Behaviour.Use(Enemy));
                movingSkillRunning = true;
                yield return(new WaitForSeconds(cir.SkillCoolDown));

                movingSkillRunning = false;
                break;
            }
        }
    }
Exemplo n.º 2
0
 public OrionSpaceship()
 {
     SpaceshipClassName        = "Orion";
     SpaceshipClassDescription = "GOOD DEF, WEAK ATTACK";
     Base_attack   = 10;
     Base_def      = 8;
     MaxHealth     = 1200;
     CurrentHealth = MaxHealth;
     QSkill        = new BasicAttack();
     WSkill        = new SteeringMissile();
     ESkill        = new BlasterOrb();
     ASkill        = new OrionMove();
     SSkill        = new Teleporter();
     DSkill        = new CircleMove();
     ZSkill        = new Shield();
     XSkill        = new AirForceCall();
     CSkill        = new Revind();
 }
Exemplo n.º 3
0
 public WarperSpaceship()
 {
     SpaceshipClassName        = "Warper";
     SpaceshipClassDescription = "BALLANCED";
     Base_attack   = 15;
     Base_def      = 4;
     MaxHealth     = 1000;
     CurrentHealth = MaxHealth;
     QSkill        = new BasicAttack();
     WSkill        = new SteeringMissile();
     ESkill        = new BlasterOrb();
     ASkill        = new OrionMove();
     SSkill        = new Teleporter();
     DSkill        = new CircleMove();
     ZSkill        = new Invisible();
     XSkill        = new ElectricCharge();
     CSkill        = new BlackHole();
 }
Exemplo n.º 4
0
 public ScalpelSpaceship()
 {
     SpaceshipClassName        = "Scalpel";
     SpaceshipClassDescription = "STRONG ATTACK";
     Base_attack   = 12;
     Base_def      = 2;
     MaxHealth     = 800;
     CurrentHealth = MaxHealth;
     QSkill        = new BasicAttack();
     WSkill        = new SteeringMissile();
     ESkill        = new BlasterOrb();
     ASkill        = new OrionMove();
     SSkill        = new Teleporter();
     DSkill        = new CircleMove();
     ZSkill        = new MirrorShield();
     XSkill        = new Desant();
     CSkill        = new LaserBeam();
 }