示例#1
0
    // Use this for initialization
    void Start()
    {
        Main = gameObject.GetComponent <ControlPanel>();
        MoveControl_script = GameObject.Find("move_control").GetComponent <MoveControl>();
        AutoMove_Script    = GameObject.Find("AutoMove").GetComponent <AutoMoveModule>();
        AutoRunning_Script = gameObject.GetComponent <EntranceScript>();

        Feedrate_height = Feedrate_width * 511 / 893;
    }
示例#2
0
    // Use this for initialization
    void Start()
    {
        Main               = gameObject.GetComponent <ControlPanel>();
        CooSystem_script   = gameObject.GetComponent <CooSystem>();
        MoveControl_script = GameObject.Find("move_control").GetComponent <MoveControl>();
//		MDIEdit_Script = gameObject.GetComponent<MDIEditModule>();
        HandWheel_script   = GameObject.Find("KD").GetComponent <HandWheelModule>();
        AutoRunning_Script = gameObject.GetComponent <EntranceScript>();
        Softkey_Script     = gameObject.GetComponent <SoftkeyModule>();
    }
 public static bool Prefix(EntranceScript __instance)
 {
     if (PlanetRegistry.Singleton[SpawnerScript.curBiome] is PlanetInfo planet && planet.GetEntryType() == PlanetType.SINGLE)
     {
         GameScript.endPortal[3]   = (GameObject)Network.Instantiate((GameObject)Resources.Load("portal"), new Vector3(__instance.spawnSpot[3].transform.position.x, __instance.spawnSpot[3].transform.position.y + 1.2f, 0f), Quaternion.identity, 0);
         GameScript.endPortalUA[3] = GameScript.endPortal[3].transform.GetChild(0).gameObject;
         GameScript.endPortal[3].GetComponent <NetworkView>().RPC("Activate", RPCMode.All, new object[0]);
         GameScript.endPortalUA[3].GetComponent <NetworkView>().RPC("Set", RPCMode.AllBuffered, new object[]
         {
             98,
             0,
             3
         });
         return(false);
     }
     return(true);
 }
示例#4
0
 // Use this for initialization
 void Start()
 {
     Main = gameObject.GetComponent <ControlPanel>();
     AutoRunning_Script = gameObject.GetComponent <EntranceScript>();
 }