// [SerializeField] private UnityEngine.UI.Text text2; void Start() { var q = MeleeWeaponUpdator.Initialise(); var a = new Melee(); Debug.Log(q.Update(a.GetType()).GetType().Name); var b = new Class1(); Debug.Log(q.Update(b.GetType()).GetType().Name); }
private static void MeleeAttacks(Melee fighter, Spellcaster caster) { caster.TakeDamage(fighter.Attack(), fighter.Name, fighter.GetType().ToString()); }