Exemplo n.º 1
0
    private void Start()
    {
        // Я так и не смог придумать, как сделать это умнее.
        PlayerTankController player = _playerSpawner.Spawn(0).GetComponent <PlayerTankController>();

        _inputListener.Init(player);
    }
Exemplo n.º 2
0
 void Start()
 {
     // Load All Mangers;
     GameManager.Instance.curStatus = GameManager.Status.LOAD_RESOURCE;
     InputListener.Init();
     DataManager.Init();
     f_LastInterval = Time.realtimeSinceStartup;
     i_Frames       = 0;
 }
Exemplo n.º 3
0
    void Start()
    {
        //load all managers
        GameManager.Instance.CurStatus = GameManager.Status.LOAD_RESOURCE;
        InputListener.Init();
        DataManager.Init();

        f_LastInterval = Time.realtimeSinceStartup;//从游戏开始到现在,游戏经过的时间
        i_Frames       = 0;
    }
Exemplo n.º 4
0
    // ------------------------------------------------------------------
    // Desc:
    // ------------------------------------------------------------------

    void Start()
    {
        charCtrl = GetComponent <CharacterController>();
        animator = GetComponent <Animator>();

        if (charCtrl && actorInfo)
        {
            charCtrl.radius = actorInfo.radius;
            charCtrl.height = actorInfo.height;
        }
        if (movementState)
        {
            movementState.Init(this);
        }

        if (inputListener)
        {
            inputListener.Init(this);
        }
    }
Exemplo n.º 5
0
 private void Start()
 {
     InputListener.Init(GameController);
     GameController.StartGame();
 }