示例#1
0
	// 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>();

		}
	}
示例#2
0
    // 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>();
        }
    }