public static void Test() { var human = new Human(); var kaifukuItem = new KaifukuItem(); kaifukuItem.Apply(human); Console.WriteLine(human.Life);//回復した。100 var kougekiItem = new KougekiItem(); kougekiItem.Apply(human); var bougyoItem = new BougyoItem(); bougyoItem.Apply(human); }
public void Apply(Human human) { human.Kougeki += 100; }
public void Apply(Human human) { human.Life += 100; }
public void Apply(Human human) { human.Bougyo += 100; }