/// <summary> Creation of Controller and Model </summary> private void Awake() { if (this.Model == null) { this.Model = new GameConversations(); } this.controller = new GameConversationsController(this.Model); }
/// <summary> /// Initializes a new instance of the <see cref="GameConversationsController"/> class. /// </summary> /// <param name="gameConversations">Model of the GameConversations</param> public GameConversationsController(GameConversations gameConversations) { gameConversations.PendingConversations = new Dictionary <string, List <PendingStatus> >(); gameConversations.ConversationsToAdd = new List <PendingStatus>(); this.model = gameConversations; }
// Use this for initialization void Start() { GameConversations gc = new GameConversations(); conversation = gc.GetConversationById(conversationId); }