예제 #1
0
	// Use this for initialization
	void Start () {
		GameObject backgd = GameObject.Find ("background"); //调用脚本background中的地图
		bg = (background4)backgd.GetComponent (typeof(background4));

		GameObject heroobj = GameObject.Find ("hero"); //调用脚本background中的地图
		heroscript = (hero4)heroobj.GetComponent (typeof(hero4));
		
		GameObject moneyobj = GameObject.Find ("enemy"); //调用脚本background中的地图
		moneyscript = (monkey4)moneyobj.GetComponent (typeof(monkey4));
	}
예제 #2
0
	// Use this for initialization
	void Start () {
		GameObject backgd = GameObject.Find ("background"); //调用脚本background中的地图
		bg = (background4)backgd.GetComponent (typeof(background4));

		GameObject moneyobj = GameObject.Find ("enemy"); //调用脚本background中的地图
		monkeyscript = (monkey4)moneyobj.GetComponent (typeof(monkey4));

		astar = new AStar();
		animator = GetComponent<Animator> ();
		hasdone = 1;
	}
예제 #3
0
    // Use this for initialization
    void Start()
    {
        GameObject backgd = GameObject.Find("background");          //调用脚本background中的地图

        bg = (background4)backgd.GetComponent(typeof(background4));

        GameObject heroobj = GameObject.Find("hero");          //调用脚本background中的地图

        heroscript = (hero4)heroobj.GetComponent(typeof(hero4));

        GameObject moneyobj = GameObject.Find("enemy");          //调用脚本background中的地图

        moneyscript = (monkey4)moneyobj.GetComponent(typeof(monkey4));
    }
예제 #4
0
    // Use this for initialization
    void Start()
    {
        GameObject backgd = GameObject.Find("background");          //调用脚本background中的地图

        bg = (background4)backgd.GetComponent(typeof(background4));

        GameObject moneyobj = GameObject.Find("enemy");          //调用脚本background中的地图

        monkeyscript = (monkey4)moneyobj.GetComponent(typeof(monkey4));

        astar    = new AStar();
        animator = GetComponent <Animator> ();
        hasdone  = 1;
    }
예제 #5
0
    public background4 bg;         //调用脚本background中的地图

    // Use this for initialization
    void Start()
    {
        GameObject backgd = GameObject.Find("background");          //调用脚本background中的地图

        bg = (background4)backgd.GetComponent(typeof(background4));
    }
예제 #6
0
	public background4 bg;//调用脚本background中的地图
	
	// Use this for initialization
	void Start () {
		GameObject backgd = GameObject.Find ("background"); //调用脚本background中的地图
		bg = (background4)backgd.GetComponent (typeof(background4));
	}