private void Initialize() { col = GetComponent<BoxCollider2D> (); col.isTrigger = true; personaje = GameObject.Find("Player").GetComponent<CH_Movimiento> (); comp_render = GetComponent<SpriteRenderer> (); }
private void Initialize() { col = GetComponent <BoxCollider2D> (); col.isTrigger = true; personaje = GameObject.Find("Player").GetComponent <CH_Movimiento> (); comp_render = GetComponent <SpriteRenderer> (); }
// Use this for initialization void Start() { ch = GameObject.Find ("Player").GetComponent<CH_Movimiento> (); if (name == "Puerta") { puerta = true; } else { puerta = false; } }
// Use this for initialization void Start() { ch = GameObject.Find("Player").GetComponent <CH_Movimiento> (); if (name == "Puerta") { puerta = true; } else { puerta = false; } }