Пример #1
0
    //todo: find a better way to initialize the gun in had in any other way than a timer... bad programming
    void SetGun()
    {
        StemKitMNGR.Call_GunSetChangeTo(GunType.MAGNUM);
        StemKitMNGR.CALL_UpdateAvailableGUnIndex(3);
        StemKitMNGR.CALL_ToggleAllowExtraButtons(true);
        StemKitMNGR.CALL_ToggleStemInput(true);

        if (_stmKitMngr == null)
        {
            Debug.Log("we loaded the stemstation, but cannot get the stemkitMNGrScript");
        }
    }
Пример #2
0
    void StartGame()
    {
        StemKitMNGR.CALL_ToggleAllowExtraButtons(false);
        TargCTRL.MakeInvisible();
        // DebugConsole.print("1 Gamestarted");
        if (mists.Count > 0)
        {
            //DebugConsole.print("we got mists");
            MistMover mm = mists[0].gameObject.GetComponent <MistMover>();
            if (mm)
            {
                //  DebugConsole.print("we got mistmover");
                if (_placeHolderMistTarget != null)
                {
                    DebugConsole.print("mist can move to mist target");
                    mm.StartMistMove(_placeHolderMistTarget.transform.position);
                }
                else
                {
                    DebugConsole.print("mist is moving to player");
                    mm.StartMistMove(
                        new Vector3(
                            mists[0].gameObject.transform.position.x,
                            mists[0].gameObject.transform.position.y,
                            GameObject.FindObjectOfType <Camera>().transform.position.z));
                }
            }
        }

        isGameStarted = true;
        if (player.gridPosition == null)
        {
            player.SetGridPosition();
        }

        // begin first wave in 5 seconds
        _waveManager.BeginNextWave(GameSettings.Instance.FirstBuffer);
        WaveStartedGraphics();
    }