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

		GameObject heroobj = GameObject.Find ("hero"); //调用脚本background中的地图
		heroscript = (hero6)heroobj.GetComponent (typeof(hero6));
		
		GameObject moneyobj = GameObject.Find ("enemy"); //调用脚本background中的地图
		moneyscript = (monkey6)moneyobj.GetComponent (typeof(monkey6));
	}
示例#2
0
	// Use this for initialization
	void Start () {
		GameObject backgd = GameObject.Find ("background"); //调用脚本background中的地图
		bg = (background6)backgd.GetComponent (typeof(background6));

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

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

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

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

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

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

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

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

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

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

        moneyscript = (monkey6)moneyobj.GetComponent(typeof(monkey6));
    }
示例#5
0
    public background6 bg;         //调用脚本background中的地图

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

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