private void OnCollisionEnter2D(Collision2D collision) { if (collision.gameObject.CompareTag("Player") && !isReceive) { isReceive = true; StatCharacter stat = collision.gameObject.GetComponent <StatCharacter>(); if (stat != null) { stat.ChangeStat(typeItem); } Destroy(gameObject); } }
public Jhin() : base() { StructInfo = new StatCharacter("Shan", 100, 50, 200); }
public Orc() : base() { CharacterStructInfo = new StatCharacter("Enemy : Kthuluh", 300, 100, 25); }
public He_Man() : base() { StructInfo = new StatCharacter("Wat", 100, 50, 200); }
public Troll() : base() { CharacterStructInfo = new StatCharacter("Enemy : Buraat", 500, 200, 50); }
public Goblin() : base() { CharacterStructInfo = new StatCharacter("Enemy : Farrath", 150, 50, 75); }
public Bruno() : base() { StructInfo = new StatCharacter("Bucciarati", 100, 50, 200); }
public Warlock() : base() { CharacterStructInfo = new StatCharacter("Hero : Eriana", 100, 100, 200); }
public Knight() : base() { CharacterStructInfo = new StatCharacter("Hero : Hajax", 250, 125, 100); }
public Archer() : base() { CharacterStructInfo = new StatCharacter("Hero : Legolas", 150, 75, 125); }