// Use this for initialization void Start () { //1a opcion de enlazar objetos isDead = false; GameObject o= GameObject.FindGameObjectWithTag ("LogicGame"); if(o!=null){ lg= o.GetComponent<LB_LogicGame>(); } }
// Use this for initialization void Start() { //1a opcion de enlazar objetos isDead = false; GameObject o = GameObject.FindGameObjectWithTag("LogicGame"); if (o != null) { lg = o.GetComponent <LB_LogicGame>(); } }