void Start() { IUserProfile currentRecruitProfile = UserProfile.UserProfileGenerator(r); IPlayerProfile playerProfile = new TestPlayerProfile(); session = new RecruitingSessionImpl(currentRecruitProfile, playerProfile, platform, gameManager); }
// Use this for initialization void Start() { manager = FindObjectOfType <GameManager>(); session = FindObjectOfType <GameManager>().CurrentRecruitingSession; if (session == null) { session = new RecruitingSessionImpl(UserProfile.UserProfileGenerator(new System.Random()), new TestProfile(), FindObjectOfType <AMessagingPlatformView>(), FindObjectOfType <GameManager>()); } joinCultSelectable.SetReaction(JoinCult); complimentSelectable.SetReaction(Compliment); smallTalkSelectable.SetReaction(SmallTalk); mentionCultSelectable.SetReaction(MentionCult); hintAtCultSelectable.SetReaction(HintAtCult); }