コード例 #1
0
ファイル: BaseMob.cs プロジェクト: Androp0v/Mix-Jam2020
 // Update is called once per frame
 void Update()
 {
     // Update age of the mob on every update
     _age += simulationTimestep;
     // Check if the mob is too old
     if (_age > getMaxAge())
     {
         OnDeath();
     }
     timeSinceLastMating += simulationTimestep;
     // Move the mob
     behaviour.Move();
 }