Пример #1
0
 //pseudo-constructor
 protected void Initialize(string name, string defaultName)
 {
     this.name      = name;
     speed          = 1d;
     hasUpdatedName = !name.StartsWith(defaultName);
     guid           = SerializedGUID.Create();
 }
Пример #2
0
 public void EnsureHasGUID()
 {
     //Animation states used to not have guids!
     if (guid.GUID == Guid.Empty)
     {
         guid = SerializedGUID.Create();
     }
 }