void Awake() { rb = GetComponent <Rigidbody2D>(); controls = new InputMain(); controls.Player.Move.performed += (x) => v2MoveInput = x.ReadValue <Vector2>(); }
void Awake() { input = new InputMain(); input.Player.Exit.performed += _ => Exit(); StartTable(); }
// Use this for initialization public void Start() { //loads main menu MyScreen1.Start(); DataController.Start(); Application.targetFrameRate = 60; //ProfilerHere(); ClassContainer = General.Create(Root.classesContainer); BuildsContainer = General.Create(Root.classesContainer, name: "BuildsContainer"); PersonObjectContainer = General.Create(Root.classesContainer, name: "PersonObjectsContainer"); MeshBatchContainer = General.Create(Root.classesContainer, name: "MeshBatchContainer"); if (Application.loadedLevelName == "Lobby") { //Settings.PlayMusic(); } else { if (gameScene == null) { gameScene = (GameScene)General.Create(Root.gameScene, container: ClassContainer.transform); InputMain = (InputMain)General.Create(Root.inputMain, container: ClassContainer.transform); } } MouseListener.Start(); ManagerReport.Start(); AudioCollector.RedoGame(); }
private void Load3(H hType) { Debug.Log("third load"); if (gameScene == null) { gameScene = (GameScene)General.Create(Root.gameScene, container: ClassContainer.transform, hType: hType); InputMain = (InputMain)General.Create(Root.inputMain, container: ClassContainer.transform); } }