Пример #1
0
 public void TryClone(CloningRecord record)
 {
     if (cloningPod && cloningPod.CanClone())
     {
         if (record.mind.ConfirmClone(record.mobID))
         {
             cloningPod.StartCloning(record);
             CloningRecords.Remove(record);
         }
         else
         {
             cloningPod.statusString = "Initialisation failure.";
         }
     }
 }
Пример #2
0
    public void ServerTryClone(CloningRecord record)
    {
        if (cloningPod && cloningPod.CanClone())
        {
            var status = record.mind.GetCloneableStatus(record.mobID);

            if (status == CloneableStatus.Cloneable)
            {
                cloningPod.ServerStartCloning(record);
                cloningRecords.Remove(record);
            }
            else
            {
                cloningPod.UpdateStatusString(status);
            }
        }
    }