示例#1
0
文件: Death.cs 项目: Thomsch/EVA
 public Death(Organism organism, DUpdateState updateState)
     : base(organism, updateState)
 {
     Organism.Death = SimHandler.Instance().Step;
     Organism.LogSelf();
     SimHandler.PopulationHandler().Kill(Organism);
 }
示例#2
0
文件: Movement.cs 项目: Thomsch/EVA
 public Movement(Organism organism, DUpdateState updateState)
     : base(organism, updateState)
 {
     Organism.collider.enabled = true;
     motor = organism.motor;
     last = Organism.transform.position;
 }
示例#3
0
文件: Teen.cs 项目: Thomsch/EVA
 public Teen(Organism organism, DUpdateState updateState)
     : base(organism, updateState)
 {
     inner = new Movement(Organism, null);
 }
示例#4
0
 public Reproduction(Organism organism, Organism other, DUpdateState updateState, bool isMother)
     : base(organism, null)
 {
     Other = other;
     IsMother = isMother;
 }
示例#5
0
文件: State.cs 项目: Thomsch/EVA
 public State(Organism organism, DUpdateState updateState)
 {
     Organism = organism;
     UpdateState = updateState;
 }
示例#6
0
文件: Birth.cs 项目: Thomsch/EVA
 public Birth(Organism organism, DUpdateState updateState)
     : base(organism, updateState)
 {
     Organism.Name = (++Organism.NumberOfOrganisms).ToString();
     Organism.Birth = SimHandler.Instance().Step;
 }
示例#7
0
文件: Adult.cs 项目: Thomsch/EVA
 public Adult(Organism organism, DUpdateState updateState)
     : base(organism, updateState)
 {
     inner = new Movement(Organism, MovementToReproduction);
     NoNewChild = 0;
 }
示例#8
0
文件: AutoState.cs 项目: Thomsch/EVA
 public AutoState(Organism organism, DUpdateState updateState)
     : base(organism, updateState)
 {
 }