static public MeleeWeaponUpdator Initialise()
 {
     if (this_Initialisation == null)
     {
         this_Initialisation = new MeleeWeaponUpdator();
     }
     return(this_Initialisation);
 }
Ejemplo n.º 2
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);
    }