Example #1
0
 private void Start()
 {
     QualitySettings.vSyncCount = 0;
     GameObject.Find("MultiplayerManager").GetComponent <FengGameManagerMKII>().addCamera(this);
     isPausing = false;
     if (PlayerPrefs.HasKey("MouseSensitivity"))
     {
         sensitivityMulti = PlayerPrefs.GetFloat("MouseSensitivity");
     }
     if (PlayerPrefs.HasKey("invertMouseY"))
     {
         invertY = PlayerPrefs.GetInt("invertMouseY");
     }
     this.inputManager = GameObject.Find("InputManagerController").GetComponent <FengCustomInputs>();
     this.setDayLight(dayLight);
     this.locker = GameObject.Find("locker");
     if (PlayerPrefs.HasKey("cameraTilt"))
     {
         cameraTilt = PlayerPrefs.GetInt("cameraTilt");
     }
     else
     {
         cameraTilt = 1;
     }
     if (PlayerPrefs.HasKey("cameraDistance"))
     {
         cameraDistance = PlayerPrefs.GetFloat("cameraDistance") + 0.3f;
     }
     this.createSnapShotRT2();
 }
Example #2
0
    private void Start()
    {
        GameObject.Find("MultiplayerManager").GetComponent <FengGameManagerMKII>().SetCamera(this);

        IsPausing        = false;
        SensitivityMulti = PlayerPrefs.GetFloat("MouseSensitivity");
        InvertY          = PlayerPrefs.GetInt("invertMouseY");

        inputManager = GameObject.Find("InputManagerController").GetComponent <FengCustomInputs>();
        if (inputManager == null)
        {
            // Fallback
            inputManager = UIMainReferences.InputManagerObj.GetComponent <FengCustomInputs>();
        }

        SetLighting(Lighting);
        locker = GameObject.Find("locker");
        if (PlayerPrefs.HasKey("cameraTilt"))
        {
            CameraTilt = PlayerPrefs.GetInt("cameraTilt");
        }
        else
        {
            CameraTilt = 1;
        }
        if (PlayerPrefs.HasKey("cameraDistance"))
        {
            CameraDistance = PlayerPrefs.GetFloat("cameraDistance") + 0.3f;
        }
        CreateSnapshotRT2();
    }
 private void Start()
 {
     inputManager  = GGM.Caching.GameObjectCache.Find("InputManagerController").GetComponent <FengCustomInputs>();
     currentCamera = GGM.Caching.GameObjectCache.Find("MainCamera").GetComponent <Camera>();
     if (IN_GAME_MAIN_CAMERA.gametype == GAMETYPE.SINGLE)
     {
         enabled = false;
     }
 }
 private void Start()
 {
     GameObjectCache.Find("MultiplayerManager").GetComponent <FengGameManagerMKII>().addCamera(this);
     isPausing    = false;
     inputManager = GameObjectCache.Find("InputManagerController").GetComponent <FengCustomInputs>();
     setDayLight(dayLight);
     locker = GameObjectCache.Find("locker");
     createSnapShotRT();
 }
Example #5
0
 private void Start()
 {
     this.inputManager  = CLEARSKIES.CacheGameObject.Find("InputManagerController").GetComponent <FengCustomInputs>();
     this.currentCamera = CLEARSKIES.CacheGameObject.Find("MainCamera").GetComponent <Camera>();
     if (IN_GAME_MAIN_CAMERA.gametype == GAMETYPE.SINGLE)
     {
         base.enabled = false;
     }
 }
Example #6
0
 private void Start()
 {
     inputManager  = GameObject.Find("InputManagerController").GetComponent <FengCustomInputs>();
     currentCamera = GameObject.Find("MainCamera").GetComponent <Camera>();
     if (IN_GAME_MAIN_CAMERA.Gametype == GameType.Singleplayer)
     {
         base.enabled = false;
     }
 }
Example #7
0
    private void Start()
    {
        if (!FengGameManagerMKII.Level.Hints)
        {
            base.enabled = false;
        }

        fengGame = GameObject.Find("MultiplayerManager").GetComponent <FengGameManagerMKII>();

        FengCustomInputs inputs = GameObject.Find("InputManagerController").GetComponent <FengCustomInputs>();

        if (content == string.Empty)
        {
            switch (myhint)
            {
            case HintType.DODGE:
                content = "Press [F7D358]" + inputs.inputString[InputCode.Dodge] + "[-] to Dodge.";
                break;

            case HintType.ATTACK:
                content = "Press [F7D358]" + inputs.inputString[InputCode.Attack0] + "[-] to Attack. \nPress [F7D358]" + inputs.inputString[InputCode.Attack1] + "[-] to use special attack.\n***You can only kill a titan by slashing his [FA5858]NAPE[-].***\n\n";
                break;

            case HintType.MOVE:
                content = "Hello soldier!\nWelcome to Attack On Titan Tribute Game!\n Press [F7D358]" + inputs.inputString[InputCode.Up] + inputs.inputString[InputCode.Left] + inputs.inputString[InputCode.Down] + inputs.inputString[InputCode.Right] + "[-] to Move.";
                break;

            case HintType.TELE:
                content = "Move to [82FA58]green warp point[-] to proceed.";
                break;

            case HintType.CAMA:
                content = "Press [F7D358]" + inputs.inputString[InputCode.ChangeCamera] + "[-] to change camera mode\nPress [F7D358]" + inputs.inputString[InputCode.ToggleCursor] + "[-] to hide or show the cursor.";
                break;

            case HintType.JUMP:
                content = "Press [F7D358]" + inputs.inputString[InputCode.Jump] + "[-] to Jump.";
                break;

            case HintType.JUMP2:
                content = "Press [F7D358]" + inputs.inputString[InputCode.Up] + "[-] towards a wall to perform a wall-run.";
                break;

            case HintType.HOOK:
                content = "Press and Hold[F7D358] " + inputs.inputString[InputCode.HookLeft] + "[-] or [F7D358]" + inputs.inputString[InputCode.HookRight] + "[-] to launch your grapple.\nNow Try hooking to the [>3<] box. ";
                break;

            case HintType.HOOK2:
                content = "Press and Hold[F7D358] " + inputs.inputString[InputCode.HookBoth] + "[-] to launch both of your grapples at the same Time.\n\nNow aim between the two black blocks. \nYou will see the mark '<' and '>' appearing on the blocks. \nThen press " + inputs.inputString[InputCode.HookBoth] + " to hook the blocks.";
                break;

            case HintType.SUPPLY:
                content = "Press [F7D358]" + inputs.inputString[InputCode.Reload] + "[-] to reload your blades.\n Move to the supply station to refill your gas and blades.";
                break;
            }
        }
    }
Example #8
0
 private void Start()
 {
     GameObject.Find("MultiplayerManager").GetComponent <FengGameManagerMKII>().SetCamera(this);
     IsPausing        = false;
     SensitivityMulti = PlayerPrefs.GetFloat("MouseSensitivity");
     InvertY          = PlayerPrefs.GetInt("invertMouseY");
     inputManager     = GameObject.Find("InputManagerController").GetComponent <FengCustomInputs>();
     setDayLight(Time);
     locker = GameObject.Find("locker");
     if (PlayerPrefs.HasKey("cameraTilt"))
     {
         CameraTilt = PlayerPrefs.GetInt("cameraTilt");
     }
     else
     {
         CameraTilt = 1;
     }
     if (PlayerPrefs.HasKey("cameraDistance"))
     {
         CameraDistance = PlayerPrefs.GetFloat("cameraDistance") + 0.3f;
     }
     createSnapShotRT2();
 }
Example #9
0
 private void Start()
 {
     if (Inputs == null)
     {
         Inputs = this;
     }
     this.inputBool      = new bool[this.DescriptionString.Length];
     this.inputString    = new string[this.DescriptionString.Length];
     this.inputKey       = new KeyCode[this.DescriptionString.Length];
     this.joystickActive = new bool[this.DescriptionString.Length];
     this.joystickString = new string[this.DescriptionString.Length];
     this.isInput        = new bool[this.DescriptionString.Length];
     this.isInputDown    = new bool[this.DescriptionString.Length];
     this.isInputUp      = new bool[this.DescriptionString.Length];
     this.tempLength     = PlayerPrefs.GetInt("KeyLength");
     this.tempjoy1       = new bool[this.DescriptionString.Length];
     if (!PlayerPrefs.HasKey("version"))
     {
         this.setToDefault();
     }
     this.tempLength = PlayerPrefs.GetInt("KeyLength");
     if (PlayerPrefs.HasKey("KeyCodes") && (this.tempLength == this.DescriptionString.Length))
     {
         this.loadConfig();
     }
     else
     {
         this.setToDefault();
     }
     for (int i = 0; i < this.DescriptionString.Length; i++)
     {
         this.isInput[i]     = false;
         this.isInputDown[i] = false;
         this.isInputUp[i]   = false;
         this.tempjoy1[i]    = true;
     }
 }
Example #10
0
 private void Start()
 {
     this.inputManager = GameObject.Find("InputManagerController").GetComponent <FengCustomInputs>();
 }
 private void Start()
 {
     inputManager = GGM.Caching.GameObjectCache.Find("InputManagerController").GetComponent <FengCustomInputs>();
 }
 public void Start()
 {
     inputs        = GameObject.Find("InputManagerController").GetComponent <FengCustomInputs>();
     currentCamera = GameObject.Find("MainCamera");
 }
Example #13
0
 private void OnDestroy()
 {
     FengCustomInputs.Inputs = null;
 }
Example #14
0
 private void OnDisable()
 {
     FengCustomInputs.Inputs = this;
 }
Example #15
0
 private void Awake()
 {
     FengCustomInputs.Inputs = this;
 }
Example #16
0
 private void Awake()
 {
     Main = this;
 }