示例#1
0
 protected override void PostInit(XPContext xpContext, ElementInfo[] info, LogExperienceController logController, int randomSeed, XPState stateOnActivation)
 {
     base.PostInit(xpContext, info, logController, randomSeed, stateOnActivation);
     hologramTube           = GetElement <MAIAHologramTube>();
     tabletScreen           = GetElement <MAIATabletScreen>();
     topScreen              = GetElement <MAIATopScreen>();
     tubeScreen             = GetElement <MAIATubeScreen>();
     topScreen.tabletScreen = tabletScreen;
     _hologramFeynman       = GetElement <MAIAHologramFeynman>();
     _bottomScreen          = GetElement <MAIABottomScreen>();
     settings = (MAIASettings)xpContext.xpSettings;
 }
示例#2
0
 protected override void PreInit(XPContext xpContext, LogExperienceController logController, int randomSeed, XPState stateOnActivation)
 {
     base.PreInit(xpContext, logController, randomSeed, stateOnActivation);
     _rand = new System.Random(randomSeed);
 }