public void ApplyRequestToTube(int i, Action <Action> action, IActor actor) { DeploymentTube tube = deploymentTubes[i]; if (tube == null) { Debug.Log("Tube " + i + " cannot be found"); return; } tube.ApplyRequest(action, actor); }
public void Init() { //This should be done here because Deployment tube will look for a scene which is a monobehavour for (int i = 0; i < ApplicationConstants.NumberOfScenes; i++) { deploymentTubes[i] = new DeploymentTube(i); } //--Handle the event firing GameEventManager.Instance.CallEvent(ApplicationConstants.EVENT_DEPLOYMENT_TUBE_MANAGER_FINISH_INIT, ActionParams.EmptyParams); }