示例#1
0
    private IEnumerator BlasterOnChance()
    {
        while (!bo_Behaviour.blasterOn)
        {
            blasterChance      = Random.Range(0, 6);
            randomisingBlaster = false;
            yield return(new WaitForSecondsRealtime(2));

            if (blasterChance == 3)
            {
                bo_Behaviour.blasterOn = true;
                bo_Behaviour.Use(Enemy);
                yield return(new WaitForSecondsRealtime(Random.Range(4, 8)));

                bo_Behaviour.BlasterOff(Enemy);
                yield return(new WaitForSecondsRealtime(CreateEnemy.EnemyShip.ESkill.SkillCoolDown));
            }
            randomisingBlaster = true;
        }
    }
示例#2
0
 public void ESkill(int skillIndex)
 {
     bo_Behaviour.Use(Player);
 }