void Start() { player = GameObject.FindGameObjectWithTag("Player"); rb2d = gameObject.GetComponent <Rigidbody2D>(); camDraw = Camera.main.GetComponent <CameraDraw>(); hookRobe = gameObject.GetComponent <LineRenderer>(); }
// Use this for initialization void Start() { rb2D = GetComponent <Rigidbody2D>(); cameraDraw = Camera.main.GetComponent <CameraDraw>(); ParticleSystem.EmissionModule em = diggingParticle.emission; em.enabled = false; }
// Use this for initialization void Start() { player = GameObject.FindGameObjectWithTag("Player"); rb2D = GetComponent <Rigidbody2D>(); cameraDraw = Camera.main.GetComponent <CameraDraw>(); }
// Use this for initialization void Start() { rb2D = GetComponent <Rigidbody2D>(); cameraDraw = cam.GetComponent <CameraDraw>(); }