예제 #1
0
    // Update is called once per frame
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.Q) || KS_Input.GetKeyDown(KS_Input.DS4ButtonToKey(DS4KeyCode.Square)))
        {
            Spawn();
        }

        if (Input.GetKeyDown(KeyCode.E) || KS_Input.GetKeyDown(KS_Input.DS4ButtonToKey(DS4KeyCode.Triangle)))
        {
            clear();
        }
    }
예제 #2
0
    // Update is called once per frame
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.Q) || KS_Input.GetKeyDown(KS_Input.DS4ButtonToKey(DS4KeyCode.Triangle)))
        {
            ChangeLanguage();
        }

        if (Input.GetKeyDown(KeyCode.E) || KS_Input.GetKeyDown(KS_Input.DS4ButtonToKey(DS4KeyCode.Square)))
        {
            ShowSubtitle();
        }
    }
예제 #3
0
    // Update is called once per frame
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.N) || KS_Input.GetKeyDown(KS_Input.DS4ButtonToKey(DS4KeyCode.Triangle)))
        {
            map.useMiniMap = !map.useMiniMap;

            if (map.MiniMapActive && !map.useMiniMap && !map.MapActive)
            {
                map.DisableMinimap();
                mapContainer.SetActive(false);
            }
            if (!map.MapActive && map.useMiniMap)
            {
                map.EnableMinimap();
                mapContainer.SetActive(true);
            }
        }
    }
예제 #4
0
    // Update is called once per frame
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.F) || KS_Input.GetKeyDown(KS_Input.DS4ButtonToKey(DS4KeyCode.Triangle)))
        {
            ResetObjects();
        }

        if (Input.GetKeyDown(KeyCode.Q) || KS_Input.GetKeyDown(KS_Input.DS4ButtonToKey(DS4KeyCode.Square)))
        {
            Save();
        }

        if (Input.GetKeyDown(KeyCode.E) || KS_Input.GetKeyDown(KS_Input.DS4ButtonToKey(DS4KeyCode.X)))
        {
            Load();
        }

        if (Input.GetMouseButtonDown(0) || KS_Input.GetKeyDown(KS_Input.DS4ButtonToKey(DS4KeyCode.R2)))
        {
            FindObjectOfType <updateBulletPoint>().Fire();
        }
    }
예제 #5
0
    // Update is called once per frame
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.Q) || KS_Input.GetKeyDown(KS_Input.DS4ButtonToKey(DS4KeyCode.Square)))
        {
            Spawn();
        }

        if (Input.GetKeyDown(KeyCode.F) || KS_Input.GetKeyDown(KS_Input.DS4ButtonToKey(DS4KeyCode.Triangle)))
        {
            ClearPool();
        }

        string text = "";

        for (int i = 0; i < spawnObjects.Length; i++)
        {
            KS_IPoolObject o = spawnObjects[i].GetComponent <KS_IPoolObject>();

            text += o.PoolSettings().tag + ": Active in scene (" + GetAmountOfType(o.PoolSettings().tag)
                    + ") ---- In pool (" + pool.GetAmountOfType(o.PoolSettings().tag) + ")\n";
        }

        wallText.text = text;
    }
예제 #6
0
    // Update is called once per frame
    void Update()
    {
        if (KS_Input.GetDS4Axis(DS4Axis.DPadX) < 0 || Input.GetKeyDown(KeyCode.Alpha1))
        {
            if (!dpadL)
            {
                dpadL = true;
                ResetTimeScale();
            }
        }
        else
        {
            dpadL = false;
        }

        if (KS_Input.GetDS4Axis(DS4Axis.DPadX) > 0 || Input.GetKeyDown(KeyCode.Alpha2))
        {
            if (!dpadR)
            {
                dpadR = true;
                IncreaseTimeScale();
            }
        }
        else
        {
            dpadR = false;
        }

        if (KS_Input.GetDS4Axis(DS4Axis.DPadY) < 0 || Input.GetKeyDown(KeyCode.Alpha4))
        {
            if (!dpadD)
            {
                dpadD = true;
                AddHour();
            }
        }
        else
        {
            dpadD = false;
        }

        if (KS_Input.GetDS4Axis(DS4Axis.DPadY) > 0 || Input.GetKeyDown(KeyCode.Alpha3))
        {
            if (!dpadU)
            {
                dpadU = true;
                QuickCycle();
            }
        }
        else
        {
            dpadU = false;
        }

        if (Input.GetKeyDown(KeyCode.Alpha5) || KS_Input.GetKeyDown(KS_Input.DS4ButtonToKey(DS4KeyCode.X)))
        {
            ResetLongLat();
        }

        if (Input.GetKeyDown(KeyCode.Alpha6) || KS_Input.GetKeyDown(KS_Input.DS4ButtonToKey(DS4KeyCode.Square)))
        {
            SetLongLatFinland();
        }

        if (Input.GetKeyDown(KeyCode.Alpha7) || KS_Input.GetKeyDown(KS_Input.DS4ButtonToKey(DS4KeyCode.Triangle)))
        {
            SetLongLatEquator();
        }
    }