Ejemplo n.º 1
0
        void Awake()
        {
            rb = GetComponent <Rigidbody2D>();

            controls = new InputMain();
            controls.Player.Move.performed += (x) => v2MoveInput = x.ReadValue <Vector2>();
        }
Ejemplo n.º 2
0
    void Awake()
    {
        input = new InputMain();

        input.Player.Exit.performed += _ => Exit();
        StartTable();
    }
Ejemplo n.º 3
0
    // 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();
    }
Ejemplo n.º 4
0
    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);
        }
    }