Exemplo n.º 1
0
    public ClauseDisplay spawnClause()
    {
        GameObject    wordObj     = Instantiate(clausePrefab, clauseCanvas);
        ClauseDisplay wordDisplay = wordObj.GetComponent <ClauseDisplay>();

        return(wordDisplay);
    }
Exemplo n.º 2
0
    public Clause(string clause, ClauseDisplay clauseDisplay, ClauseManager owner)
    {
        this.clause = clause;
        typeIndex   = 0;

        this.clauseDisplay = clauseDisplay;
        clauseDisplay.setClause(clause);

        this.owner = owner;
    }
Exemplo n.º 3
0
    private void AddClause()
    {
        ClauseDisplay clauseDisplay = clauseSpawner.spawnClause();

        activeClause = new Clause(clauseGenerator.getRandomClause(), clauseDisplay, this);
    }