private void Start() { pCtrl = FindObjectOfType <SideScrollController>(); if (target1 == null) { target1 = FindObjectOfType <GunSight>().transform; } }
// Use this for initialization void Start() { pCtrl = FindObjectOfType <SideScrollController>(); rightShoulder = pCtrl.rightShoulder; rightShoulderPoint = new GameObject(); rightShoulderPoint.name = transform.root.name + "Right Shoulder IK Helper"; }
// Use this for initialization void Start() { pCtrl = FindObjectOfType <SideScrollController>(); grappleCtrl = FindObjectOfType <GrappleController>(); paused = gm.frozen; cursorMode = CursorMode.Auto; Cursor.SetCursor(reticle, new Vector2(reticle.width / 2f, reticle.height / 2f), CursorMode.Auto); }
void Start() { Screen.lockCursor = false; Screen.showCursor = false; _wheels = GameObject.FindGameObjectsWithTag("Wheel"); startTime = Time.time; SideScrollController.CONTROLLER = this; }
// Use this for initialization void Start() { hitSounds = new AudioClip[] { hitSound1, hitSound2, hitSound3 }; ropeSounds = new AudioClip[] { ropeSound1 }; isAnchored = false; hookRb = gameObject.GetComponent <Rigidbody>(); grapple = FindObjectOfType <GrappleController>(); player = FindObjectOfType <SideScrollController>(); }
// Use this for initialization void Start() { healthVal = 100; healthChunks = 10; baseDmg = 1; baseHeal = 10; maxHealth = healthVal; pCtrl = FindObjectOfType <SideScrollController>(); inputCtrl = FindObjectOfType <FWSInput>(); }
// Use this for initialization void Start() { pCtrl = FindObjectOfType <SideScrollController>(); grappleCtrl = FindObjectOfType <GrappleController>(); ps = FindObjectOfType <ParameterScreen>(); isPaused = ps.isPaused; paused = false; cursorMode = CursorMode.Auto; Cursor.SetCursor(reticle, new Vector2(reticle.width / 2f, reticle.height / 2f), CursorMode.Auto); }
//initializes values void Start() { pCtrl = FindObjectOfType <SideScrollController>(); gm = FindObjectOfType <GM>(); //(good for staging starting shots) if (startZoomed) { transform.position = target.position + positionOffset * (zTarget * distance); } initOrthosize = Camera.main.orthographicSize; postProfile = Camera.main.GetComponent <PostProcessingBehaviour>().profile; }
// Use this for initialization void Start() { gm = FindObjectOfType <GM>(); recoil = FindObjectOfType <WeponRecoil>(); line = gameObject.GetComponent <LineRenderer>(); pInput = FindObjectOfType <FWSInput>(); joint = gameObject.GetComponent <ConfigurableJoint>(); pCtrl = FindObjectOfType <SideScrollController>(); staticHook = Instantiate(HookStaticModel, barrel.transform); ropeLengthLimit = joint.linearLimit; Retract(); }
public float animBobbingMagnitude = 0.5f; // Size of sine movement // Use this for initialization void Start() { moveToInitPosition = true; ShoulderPos = transform.parent; pCtrl = FindObjectOfType <SideScrollController>(); }
// Use this for initialization void Start() { phase = Phases.EXPLORE; frozen = false; //init GO's currLevel = SceneManager.GetActiveScene(); //for restart array interactables = GameObject.FindGameObjectsWithTag("Interactable"); hazards = GameObject.FindGameObjectsWithTag("Hazard"); normCollectibles = GameObject.FindGameObjectsWithTag("normieCollectible"); healCollectibles = GameObject.FindGameObjectsWithTag("healCollectible"); golCollectables = GameObject.FindGameObjectsWithTag("scoreCollectible"); GenerateObjectArrays(interactables, i_positions, i_rotations); GenerateObjectArrays(hazards, h_positions, h_rotations); GenerateObjectArrays(normCollectibles, nc_positions, nc_rotations); GenerateObjectArrays(healCollectibles, hc_positions, hc_rotations); GenerateObjectArrays(golCollectables, gc_positions, gc_rotations); resetLevel = false; gameOver = false; touchHazard = false; relic.SetActive(true); hd = FindObjectOfType <HealthDepletion>(); inputCtrl = FindObjectOfType <FWSInput>(); pCtrl = FindObjectOfType <SideScrollController>(); healthVal = hd.healthVal; startTime = 6000; mode = SoundManager.mode; //mode = Modes.ENDLESS; if (mode == Modes.CLASSIC || mode == Modes.ENDLESS || mode == Modes.SOULLESS) { gCtrl.shots = 0; } else if (mode == GM.Modes.LIMSWINGS) { gCtrl.shots = 15; } if (mode == Modes.ENDLESS) { clock.rectTransform.sizeDelta *= 3; clock.gameObject.transform.position = new Vector3(clock.transform.position.x, clock.transform.position.y + 3, clock.transform.position.z); } if (mode == Modes.SOULLESS) { timer = 0; } levelName = currLevel.name; if (levelName.Equals("Tutorial-pass2")) { level = Levels.TUTORIAL; } else if (levelName.Equals("Level_1-pass3")) { level = Levels.LEVEL1; } else if (levelName.Equals("Level_2-new")) { level = Levels.LEVEL2; } else if (levelName.Equals("Level_3_pass2")) { level = Levels.LEVEL3; } }
void Start() { anim = GetComponent <Animator>(); pCtrl = GetComponent <SideScrollController>(); }
void Start() { _selectables = transform.parent.GetComponentsInChildren <Selectable>(); _car = GameObject.FindGameObjectWithTag("Player").GetComponent <SideScrollController>(); }
void Start() { _selectables = transform.parent.GetComponentsInChildren<Selectable>(); _car = GameObject.FindGameObjectWithTag("Player").GetComponent<SideScrollController>(); }
// Use this for initialization void Start() { pCtrl = FindObjectOfType <SideScrollController>(); }
private void Start() { gm = FindObjectOfType <GM>(); hd = FindObjectOfType <HealthDepletion>(); pCtrl = FindObjectOfType <SideScrollController>(); }