Exemplo n.º 1
0
 public void ApplyFire(int campNum, bool isRobot, int index, Vector3 pos, Vector3 dir)
 {
     if (campNum == 1)
     {
         if (isRobot)
         {
             robotManager.FirstCampRobotFire(index, pos, dir);
         }
         else
         {
             firstCampHeroes[index].UseSkill(pos, dir);
         }
     }
     else
     {
         if (isRobot)
         {
             robotManager.SecondCampRobotFire(index, pos, dir);
         }
         else
         {
             secondCampHeroes[index].UseSkill(pos, dir);
         }
     }
 }