Ejemplo n.º 1
0
    private PlaneWarControl ScriptPlaneWarControl; //控制台物体的PlaneWarControl脚本

    void Awake()
    {
        //获取控制台物体
        MyGameControl = GameObject.Find("/GameControl");
        //获取控制台物体的PlaneWarControl脚本
        ScriptPlaneWarControl = MyGameControl.GetComponent <PlaneWarControl> ();
    }
Ejemplo n.º 2
0
Archivo: Hero.cs Proyecto: mzsc/Assets
 void Awake()
 {
     //获取GameControl物体
     MyGameControl = GameObject.Find("/GameControl");
     //获取GameControl物体上的PlaneWarControl脚本
     ScriptPlaneWarControl = MyGameControl.GetComponent <PlaneWarControl>();
     StartTime             = Time.time;
 }