static public MeleeWeaponUpdator Initialise() { if (this_Initialisation == null) { this_Initialisation = new MeleeWeaponUpdator(); } return(this_Initialisation); }
// [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); }