public void Next(string Scene) { poper.SetActive(false); playButton(); DisableBlocks(); con = new ContinueScript(Scene); SceneManager.LoadSceneAsync(Scene); }
protected override void mapBindings() { base.mapBindings(); GameObject managers = GameObject.Find("Managers"); GameObject resources = GameObject.Find("Resources"); GameObject ui = GameObject.Find("UI"); injectionBinder.Bind <IRootContext>().ToValue(this).ToSingleton(); EventManager eventManager = managers.GetComponent <EventManager>(); injectionBinder.Bind <IEventManager>().ToValue(eventManager).ToSingleton(); GameManager gameManager = managers.GetComponent <GameManager>(); injectionBinder.Bind <IGameManager>().ToValue(gameManager).ToSingleton(); BoardManager boardManager = managers.GetComponent <BoardManager>(); injectionBinder.Bind <IBoardManager>().ToValue(boardManager).ToSingleton(); UnitMaterialManager unitMaterialManager = resources.GetComponent <UnitMaterialManager>(); injectionBinder.Bind <IUnitMaterialManager>().ToValue(unitMaterialManager).ToSingleton(); UnitImageManager unitImageManager = resources.GetComponent <UnitImageManager>(); injectionBinder.Bind <IUnitImageManager>().ToValue(unitImageManager).ToSingleton(); UnitManager unitManager = managers.GetComponent <UnitManager>(); injectionBinder.Bind <IUnitManager>().ToValue(unitManager).ToSingleton(); SelectionManager selectionManager = managers.GetComponent <SelectionManager>(); injectionBinder.Bind <ISelectionManager>().ToValue(selectionManager).ToSingleton(); CoverManager coverManager = managers.GetComponent <CoverManager>(); injectionBinder.Bind <ICoverManager>().ToValue(coverManager).ToSingleton(); IWinManager winManager = managers.GetComponent <WinManager>(); injectionBinder.Bind <IWinManager>().ToValue(winManager).ToSingleton(); UnitMenuManager unitMenuManager = ui.GetComponent <UnitMenuManager>(); Inject(unitMenuManager); UnitTutorialMenu unitTutorialMenu = ui.GetComponent <UnitTutorialMenu>(); Inject(unitTutorialMenu); ContinueScript continueScript = ui.GetComponent <ContinueScript>(); Inject(continueScript); }
// Use this for initialization void Start() { IsGrounded = true; rb2d = GetComponent <Rigidbody2D>(); a2d = GetComponent <Animator>(); sprite = GetComponent <SpriteRenderer>(); continues = GameObject.Find("AppManager").GetComponent <ContinueScript>(); lifeCounter = GameObject.Find("LiveHolder").GetComponent <Lives>(); }
// Use this for initialization void Start() { script = FindObjectOfType <ContinueScript>(); }
void Start() { con = FindObjectOfType <ContinueScript>(); //poper.SetActive (true); }