Exemplo n.º 1
0
        public override void EventHandle(GameObject other)
        {
            AliveEvent(other);
            IsAnimation = true;
            WaterLine waterLine = new WaterLine(position, animation);

            if (waters != null)
            {
                waters.Add(waterLine);
            }
        }
Exemplo n.º 2
0
Arquivo: Ice.cs Projeto: vzmc/TeamWork
 public override void EventHandle(GameObject other)
 {
     if (other is Player && ((Player)other).FireNum >= Parameter.icefire)
     {
         AliveEvent(other);
         IsAnimation = true;
         WaterLine waterLine = new WaterLine(position, animation);
         if (waters != null)
         {
             waters.Add(waterLine);
         }
     }
     else if (other.Tag == "Fire")    //火が氷と接触すると消える
     {
         other.IsGoDie = true;
     }
     //葉梨竜太 11/30
     else if (other is Bomb)
     {
         BombEvent(other);
     }
 }