예제 #1
0
 public override void OnTrigger(TriggerEnum trigger, TriggerData data, AgeComponent component)
 {
     //Console.WriteLine("\t\tIncrementing age...");
     component.Age++;
 }
예제 #2
0
 public TreeEntity(string name, ulong age = 0, byte branches = 0, double branchBooster = 1)
 {
     Name            = name;
     AgeComponent    = new AgeComponent(age);
     BranchComponent = new BranchComponent(branches, branchBooster);
 }