private void Awake() { dbReference = Singleton.Instance <DBReference>(); fieldReflection = Singleton.Instance <FieldReflection>(); listenersController = Singleton.Instance <EventListenersController>(); listenersController.AddEmiter("S_UPGRADE", S_UPGRADE); LevelUpBtn.OnClickEvents += OnLevelBtn; }
protected override void Start() { base.Start(); dBReference = Singleton.Instance <DBReference>(); fieldReflection = Singleton.Instance <FieldReflection>(); listenersController = Singleton.Instance <EventListenersController>(); listenersController.AddEmiter("S_TRAINING", S_TRAINING); }
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); }