private void Start() { physicsEngine = GameObject.FindObjectOfType <PhysicsEngine>(); localCollisionManager = GetComponent <LocalCollisionManager>(); if (hasGrappler) { grappler = this.gameObject.GetComponentInChildren <Grappler>(); } }
private void Start() { start(); health = 4; deathTimeLength = 2.0f; canRespawn = true; spawn = playerSpawn; grappler = GetComponentInChildren <Grappler>(); grappler.target = GameObject.FindGameObjectWithTag("Cursor"); localPhysicsEngine.JumpStart_Event += JumpStart; localPhysicsEngine.HitTop_Event += HitTop; localPhysicsEngine.HitBottom_Event += HitBottom; localPhysicsEngine.HitRight_Event += HitRight; localPhysicsEngine.HitLeft_Event += HitLeft; }
void Start() { grappler = GetComponentInParent <Grappler>(); rb = GetComponentInParent <Rigidbody2D>(); }
// Start is called before the first frame update void Start() { grappler = GetComponentInParent <Grappler>(); physicsEngine = GameObject.FindObjectOfType <PhysicsEngine>(); }
private void Start() { start(); grappler = GetComponentInChildren <Grappler>(); grappler.target = GameObject.FindGameObjectWithTag("Cursor"); }
private void Start() { lineRenderer = GetComponent <LineRenderer>(); lineRenderer.startWidth = tetherThickness; grappler = GetComponentInParent <Grappler>(); }
private void Start() { spriteRenderer = GetComponent <SpriteRenderer>(); grappler = GetComponentInParent <Grappler>(); hook = grappler.GetComponentInChildren <GrapplerHook>(); }