Exemplo n.º 1
0
    private void Awake()
    {
        dbReference         = Singleton.Instance <DBReference>();
        fieldReflection     = Singleton.Instance <FieldReflection>();
        listenersController = Singleton.Instance <EventListenersController>();
        listenersController.AddEmiter("S_UPGRADE", S_UPGRADE);

        LevelUpBtn.OnClickEvents += OnLevelBtn;
    }
Exemplo n.º 2
0
    protected override void Start()
    {
        base.Start();

        dBReference         = Singleton.Instance <DBReference>();
        fieldReflection     = Singleton.Instance <FieldReflection>();
        listenersController = Singleton.Instance <EventListenersController>();

        listenersController.AddEmiter("S_TRAINING", S_TRAINING);
    }
Exemplo n.º 3
0
    protected override void Start()
    {
        base.Start();
        events.AddEmiter("S_DEPLOY", S_DEPLOY);
        //events.On("R_DEPLOY", R_DEPLOY);
        events.On("R_DEPLOY",
                  delegate(SocketIOEvent obj)
        {
            R_DEPLOY(obj);
            forTest.R_DEPLOY(obj);
        });

        DeployButton.OnClickEvents += OnDeployButton;


        dbRef             = Singleton.Instance <DBReference>();
        unitDataReference = Singleton.Instance <AgentRemoteManager>();

        wayPointFactory      = Singleton.Instance <NodeManagerFactory>();
        agentWayPointManager = (SingleWayPointManager)wayPointFactory.GetManager <AgentWayPoint>(NodeManagerFactory.NodeType.Single);
    }