public override Skill Clone(int value) { var tmp = new WaterAttack { Description = Description, MaxValue = MaxValue, Name = Name, Value = value }; return(tmp); }
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); } }
public StreamJewel1() { Name = "Stream Jewel 1"; Skill = new WaterAttack(1); Type = SlotType.Small; }