/// <summary> Creation of Controller and Model </summary>
        private void Awake()
        {
            if (this.Model == null)
            {
                this.Model = new GameConversations();
            }

            this.controller = new GameConversationsController(this.Model);
        }
Ejemplo n.º 2
0
 /// <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;
 }
Ejemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
        GameConversations gc = new GameConversations();

        conversation = gc.GetConversationById(conversationId);
    }