示例#1
0
 public override void Initialize()
 {
     _components = new MenuComponent[Enum.GetValues(typeof(MenuComponentType)).Length];
     _components[(int)MenuComponentType.Dummy] = new DummyMenuComponent(this);
     _components[(int)MenuComponentType.Main] = new MainMenuComponent(this);
     _components[(int)MenuComponentType.Equip] = new EquipMenuComponent(this);
     _components[(int)MenuComponentType.Arena] = new ArenaMenuComponent(this);
     _viewCurve = new MovementCurve(_components[(int)MenuComponentType.Main].Center);
     base.Initialize();
 }
示例#2
0
 /// <summary>
 /// Activates the gob, i.e. performs an initialisation rite.
 /// </summary>
 public override void Activate()
 {
     ModelName = wallModelName;
     _collisionAreas = wallCollisionAreas;
     foreach (var area in wallCollisionAreas) area.Owner = this;
     startPos = Pos;
     movingCurve = new MovementCurve(startPos);
     base.Activate();
 }