// Start is called before the first frame update void Start() { // Allow pause and play mechanic Time.timeScale = 1; // restart level when player comeback coins = 0; keys = 0; if (instance == null) { instance = this; } }
// Start is called before the first frame update void Start() { Application.targetFrameRate = 60; // Semi-presistent Main-owned objects // TODO: Should be in Awake()? frontend = (BeamFrontend)utils.findObjectComponent("BeamFrontend", "BeamFrontend"); uiController = (GameUiController)utils.findObjectComponent("GameUiController", "GameUiController"); gameCamera = (GameCamera)utils.findObjectComponent("GameCamera", "GameCamera"); gameNet = new BeamGameNet(); beamApp = new BeamApplication(gameNet, frontend); beamApp.Start(BeamModeFactory.kSplash); inputDispatch = new InputDispatch(this); // TODO: get rid of this Eth stuff (goes in GameNet) //eth = new EthereumProxy(); //eth.ConnectAsync(EthereumProxy.InfuraRinkebyUrl); // consumers should check eth.web3 before using }
public override void OnPointerClick(PointerEventData eventData) { base.OnPointerClick(eventData); GameUiController.GetController <GameUiController>(CoreContext.Game).SwitchContext(contextToSet); }