void Next() { if (_tests.Count == 0) { PTest.Render(); return; } var action = _tests [0]; _tests.RemoveAt(0); action(Next); }
public void Start() { Playtomic.Initialize("testpublickey", "testprivatekey", testURL); PTest.Setup(); PTestLeaderboards.rnd = PTestPlayerLevels.rnd = PTestAchievements.rnd = RND(); _tests = new List <Action <Action> > { #if TEST_GAMEVARS PTestGameVars.All, PTestGameVars.Single, #endif #if TEST_GEO PTestGeoIP.Lookup, #endif #if TEST_NEWSLETTER PTestNewsletter.Subscribe, #endif #if TEST_LEADERBOARDS PTestLeaderboards.FirstScore, PTestLeaderboards.SecondScore, PTestLeaderboards.HighScores, PTestLeaderboards.LowScores, PTestLeaderboards.AllScores, PTestLeaderboards.FriendsScores, PTestLeaderboards.OwnScores, #endif #if TEST_PLAYERLEVELS PTestPlayerLevels.Create, PTestPlayerLevels.List, PTestPlayerLevels.Load, PTestPlayerLevels.Rate, #endif #if TEST_ACHIEVEMENTS PTestAchievements.List, PTestAchievements.ListWithFriends, PTestAchievements.ListWithPlayer, PTestAchievements.ListWithPlayerAndFriends, PTestAchievements.Stream, PTestAchievements.StreamWithFriends, PTestAchievements.StreamWithPlayerAndFriends, PTestAchievements.Save #endif }; Next(); }
public TestDllWithTrans(PTest ptest, int index, Transform trans) : base(ptest, index) { m_luaFuncName = "Test" + index; m_trans = trans; }
public TestDll(PTest ptest, int index) : base(ptest, index) { m_luaFuncName = "Test" + index; }
public TestEmptyFunc(PTest ptest, int index) : base(ptest, index) { }
public TestGetValue(PTest ptest, int index, string valueName) : base(ptest, index) { m_valueName = valueName; }
public TestItem(PTest ptest, int index) { m_ptest = ptest; m_index = index; }
internal override void RemoveChild(Node child) { if ( _test_ == child ) { _test_ = null; return; } }
public void SetTest(PTest node) { if(_test_ != null) { _test_.Parent(null); } if(node != null) { if(node.Parent() != null) { node.Parent().RemoveChild(node); } node.Parent(this); } _test_ = node; }
public AIExpression( PTest _test_ ) { SetTest (_test_); }
public ABIfexpr( PTest _test_ ) { SetTest (_test_); }