示例#1
0
//	void OnTriggerEnter(Collider col) {
//
//		if (col.transform.tag == "Bullet") {
//			DecreaseHealth();
//			Debug.Log ("DecreaseHealth");
//
//		}
//		else if (col.transform.tag == "Laser") {
//			DecreaseHealth();
//			Debug.Log ("DecreaseHealth");
//
//		}
//	}

    void Start()
    {
        uI_Ctrl = GameObject.Find("_UI_Ctrl").GetComponent <UI_Ctrl> ();
    }
示例#2
0
    //string ConstructionPrefabPath="单位/Prefab/";
    //GameObject ReadyBuild = null;//准备建造的建筑
    //public string ConstructionPrefabPath="/Resources/单位/Prefab/";

    // Use this for initialization
    void Awake()
    {
        Instance = this;
    }