Beispiel #1
0
 protected internal override void OnInit()
 {
     base.OnInit();
     this.GameEntity.SetAnimationSoundActivation(true);
     this.GameEntity.Skeleton.SetAnimationAtChannel("anim_bird_idle", 0);
     this.GameEntity.Skeleton.SetAnimationParameterAtChannel(0, MBRandom.RandomFloat * 0.5f);
     this._kmPerHour = 4f;
     this._state     = this.GetState();
     if (this._timer == null)
     {
         this._timer = new BasicTimer(MBCommon.TimeType.Mission);
     }
     this.SetScriptComponentToTick(this.GetTickRequirement());
 }
Beispiel #2
0
 public override void OnBehaviourInitialize()
 {
     base.OnBehaviourInitialize();
     this._checkRetreatingTimer   = new BasicTimer(MBCommon.TimeType.Mission);
     this._missionAgentSpawnLogic = this.Mission.GetMissionBehaviour <IMissionAgentSpawnLogic>();
 }