public virtual void InitHerdSheepBase(PlayerControlThree Owner, float speed, bool takeOverPermitSet) { this.speed = speed; this.Owner = Owner; herdSheepList = new List <SheepControlThree>(); bootState = BootState.Complete; takeOverPermit = takeOverPermitSet; }
public void Reboot(BootState boot) { if (boot == BootState.System) { SendCommand("\"" + adbPath + "\" shell su -c \"reboot\""); } if (boot == BootState.Bootloader) { SendCommand("\"" + adbPath + "\" shell su -c \"reboot bootloader\""); } if (boot == BootState.Recovery) { SendCommand("\"" + adbPath + "\" shell su -c \"reboot recovery\""); } }
public void Reboot(BootState boot) { switch (boot) { case BootState.System: SendCommand("\"" + AdbPath + $"\" -s {DeviceNumber} reboot"); break; case BootState.Bootloader: SendCommand("\"" + AdbPath + $"\" -s {DeviceNumber} reboot bootloader"); break; case BootState.Recovery: SendCommand("\"" + AdbPath + $"\" -s {DeviceNumber} reboot recovery"); break; } }
public void InitialState() { bootState = BootState.NeedBoot; }