コード例 #1
0
        void Awake()
        {
            rb = GetComponent <Rigidbody2D>();

            controls = new InputMain();
            controls.Player.Move.performed += (x) => v2MoveInput = x.ReadValue <Vector2>();
        }
コード例 #2
0
ファイル: Main.cs プロジェクト: pomoshnik/ColorLines
    void Awake()
    {
        input = new InputMain();

        input.Player.Exit.performed += _ => Exit();
        StartTable();
    }
コード例 #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();
    }
コード例 #4
0
ファイル: Program.cs プロジェクト: naaturaz/SM
    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);
        }
    }