import { _decorator, Component, Node } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('SingletonComp')
export class SingletonComp<T> extends Component
{
    // private static m_Instance: EventsManager;

    // public static get m_GetInstance() : EventsManager
    // {
    //     return EventsManager.m_Instance;
    // }

    // protected onLoad(): void 
    // {
    //     if (!EventsManager.m_Instance)
    //     {
    //         EventsManager.m_Instance = this;
    //         return;
    //     }
        
    //     this.destroy();
    // }
}

