Exemplo n.º 1
0
    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;
    }
Exemplo n.º 2
0
 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\"");
     }
 }
Exemplo n.º 3
0
        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;
            }
        }
Exemplo n.º 4
0
 public void InitialState()
 {
     bootState = BootState.NeedBoot;
 }