예제 #1
0
 public void DeleteBehavior(Behaviors.EditBehavior behavior)
 {
     foreach (var ass in dieAssignments)
     {
         if (ass.behavior == behavior)
         {
             ass.behavior = null;
         }
     }
 }
예제 #2
0
 public void OnAfterDeserialize()
 {
     if (currentBehaviorIndex >= 0 && currentBehaviorIndex < AppDataSet.Instance.behaviors.Count)
     {
         currentBehavior = AppDataSet.Instance.behaviors[currentBehaviorIndex];
     }
     else
     {
         currentBehavior = null;
     }
 }
예제 #3
0
 public bool DependsOnBehavior(Behaviors.EditBehavior behavior)
 {
     return(dieAssignments.Any(d => d.behavior == behavior));
 }