void Start() { manager = GamepadManager.Instance; gamepad1 = manager.GetGamepad(1); gamepad2 = manager.GetGamepad(2); gamepad3 = manager.GetGamepad(3); gamepad4 = manager.GetGamepad(4); }
void Start() { gamepadMan = GamepadManager.Instance; gamepad1 = gamepadMan.GetGamepad(1); gamepad2 = gamepadMan.GetGamepad(2); agent1 = player1.agent.transform.parent; agent2 = player2.agent.transform.parent; agentOriginPos1 = agent1.localPosition; agentOriginPos2 = agent2.localPosition; }
void Start() { manager = GamepadManager.Instance; gamepad = manager.GetGamepad(papa); rb = GetComponent <Rigidbody>(); scoreManager = Score.Instance; view = Camera.main; //GetComponentInChildren<Renderer>().material.color = Random.ColorHSV(0f, 1f, 1f, 1f, 0.5f, 1f); //renderer.material.SetColor("_ToonShade",myColor); colorChanger.GetComponent <Renderer>().material.SetColor("_Color", Random.ColorHSV(0f, 1f, 1f, 1f, 0.5f, 1f)); if (papa == 1) { scoreManager.score1 = 0; } if (papa == 2) { scoreManager.score2 = 0; } if (papa == 3) { scoreManager.score3 = 0; } if (papa == 4) { scoreManager.score4 = 0; } }
// Use this for initialization void Start() { manager = GamepadManager.Instance; // gamepad = manager.GetGamepad(); gamepad = manager.GetGamepad(1); StartCoroutine(Gamepadator()); }
void Start() { //gameManager.AddPlayer (this); manager = GamepadManager.Instance; gamepad = manager.GetGamepad(playerIndex); rigidbody = GetComponent <Rigidbody>(); song.SetActive(false); InitializeVariables(); Camera.main.GetComponent <LightManager>().CraneOrOwlLight(); }
void Start() { gamepadMan = GamepadManager.Instance; gamepad = gamepadMan.GetGamepad(player); for (int i = 0; i < cardOrder.Count; i++) { cardOrder[i].cardIndex = i; } }
void Start() { // Getting the gamepad manager = GamepadManager.Instance; gamepad = manager.GetGamepad(playerIndex); // Getting the shader scripts from the camera bawShader = Camera.main.GetComponent <ReplacementShaderEffect>(); postProcess = Camera.main.GetComponent <PostProcessingBehaviour>(); glowFlash = Camera.main.GetComponent <QuickGlow>(); // Finding the black image animator inside the scene Animator[] _allAnimator = FindObjectsOfType <Animator>(); foreach (Animator anim in _allAnimator) { if (anim.gameObject.name == "BlackImage") { blackImageAnimator = anim; } } // Finding the white image animator inside the scene foreach (Animator anim in _allAnimator) { if (anim.gameObject.name == "WhiteImage") { whiteImageAnimator = anim; } } lightManager = Camera.main.GetComponent <LightManager>(); // Setting the light rendering settings in the camera if (isCrane == true) { lightManager.hasCraneLights = true; } // Adding the appropriate lense to the list if toggled in the inspector if (isCrane == false) { lensesList.Add("bawLense"); } if (isCrane == true) { // later on : the nightLense should be added to the lenseList if the crane bird takes it lensesList.Add("nightLense"); } // Setting no lense as the initial lense lensCounter = 0; currentLens = lensesList[lensCounter]; }
// Use this for initialization void Start() { manager = GamepadManager.Instance; // gamepad = manager.GetGamepad(); gamepad = manager.GetGamepad(papa); }
void Start() { rb = GetComponent <Rigidbody> (); manager = GamepadManager.Instance; gamepad = manager.GetGamepad(player); }
void Start() { manager = GamepadManager.Instance; gamepad = manager.GetGamepad(playerIndex); dust.Stop(); }
// Use this for initialization void Start() { manager = GamepadManager.Instance; gamepad = manager.GetGamepad(1); }
public void LoadGamepad(int index) { gamepad = manager.GetGamepad(index + 1); }
// Use this for initialization void Start() { manager = GamepadManager.Instance; gamepad = manager.GetGamepad(playerIndex); HideSlide(); }