Example #1
0
File: Main.cs Project: MrEk0/RPG
 private void Update()
 {
     if (Input.GetKeyDown(KeyCode.Space))
     {
         TinyHero tiny = new TinyHero(new SmallState());
         tiny.GetDamage();
         tiny.GetDamage();
         tiny.GetDamage();
     }
 }
Example #2
0
 public void GetLevel(TinyHero tiny)
 {
     Debug.Log(BaseDamage * Strength / 10);
 }
Example #3
0
 public void GetLevel(TinyHero tiny)
 {
     Debug.Log(BaseDamage * Strength / 10);
     tiny.State = new AverageState();
 }