示例#1
0
    //   [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);
    }
示例#2
0
 private static void MeleeAttacks(Melee fighter, Spellcaster caster)
 {
     caster.TakeDamage(fighter.Attack(), fighter.Name, fighter.GetType().ToString());
 }