// 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); }
// Use this for initialization void Start() { gCtrl = FindObjectOfType <GrappleController>(); gm = FindObjectOfType <GM>(); reset.onClick.AddListener(buttonReset); menu.onClick.AddListener(buttonMenu); initPos = transform.position; }
// 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() { gCtrl = FindObjectOfType <GrappleController>(); gm = FindObjectOfType <GM>(); resetButton.onClick.AddListener(buttonReset); menuButton.onClick.AddListener(buttonMenu); nextButton.onClick.AddListener(buttonNext); scoreText.text = "Score: "; initPos = transform.position; }
// 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); }
// Use this for initialization void Start() { powerBar = GetComponentInChildren<PowerBar> (); rb2D = GetComponent<Rigidbody2D> (); animator = GetComponent<Animator> (); mouseAim = GetComponentInChildren<MouseAim> (); grapple = GetComponentInChildren<GrappleController>(); isGrounded = true; direction = (transform.localScale.x == 1); }
// Use this for initialization void Start() { line = GetComponent <LineRenderer>(); grapple = FindObjectOfType <GrappleController>(); inputCtrl = FindObjectOfType <FWSInput>(); }