Пример #1
0
 public override void Initialize(Object initializationData)
 {
     this._resource = (CharacterArchetypeData)initializationData;
 }
Пример #2
0
 private void CreateZazumo()
 {
     zazumoData = (CharacterArchetypeData)ResourceDictionary.GetResource("ZazumoData");
     _zazumo = ActorFactory.Create<ZazumoActor>(zazumoData, new Vector2(_bounds.Left + _bounds.Width / 2f - zazumoData.Width / 2f, _bounds.Top + _bounds.Height / 2 - zazumoData.Height / 2f));
     AddActorController<ZazumoController>(_zazumo);
 }