Ejemplo n.º 1
0
        public override Skill Clone(int value)
        {
            var tmp = new WaterAttack
            {
                Description = Description,
                MaxValue    = MaxValue,
                Name        = Name,
                Value       = value
            };

            return(tmp);
        }
Ejemplo n.º 2
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.transform.tag == "EnemyAttackEffect")
     {
         GameObject  effect = null;
         WaterAttack water  = other.gameObject.GetComponent <WaterAttack>();
         if (water != null)
         {
             effect = water.GetHitEffect();
         }
         if (effect == null)
         {
             effect = other.gameObject.GetComponent <FireAttack>().GetHitEffect();
         }
         Instantiate(effect, transform);
         Destroy(other.gameObject);
     }
 }
Ejemplo n.º 3
0
 public StreamJewel1()
 {
     Name  = "Stream Jewel 1";
     Skill = new WaterAttack(1);
     Type  = SlotType.Small;
 }