Exemplo n.º 1
0
 void Start()
 {
     player   = GameObject.FindGameObjectWithTag("Player");
     rb2d     = gameObject.GetComponent <Rigidbody2D>();
     camDraw  = Camera.main.GetComponent <CameraDraw>();
     hookRobe = gameObject.GetComponent <LineRenderer>();
 }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        rb2D       = GetComponent <Rigidbody2D>();
        cameraDraw = Camera.main.GetComponent <CameraDraw>();

        ParticleSystem.EmissionModule em = diggingParticle.emission;
        em.enabled = false;
    }
Exemplo n.º 3
0
 // 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>();
 }