public ClauseDisplay spawnClause() { GameObject wordObj = Instantiate(clausePrefab, clauseCanvas); ClauseDisplay wordDisplay = wordObj.GetComponent <ClauseDisplay>(); return(wordDisplay); }
public Clause(string clause, ClauseDisplay clauseDisplay, ClauseManager owner) { this.clause = clause; typeIndex = 0; this.clauseDisplay = clauseDisplay; clauseDisplay.setClause(clause); this.owner = owner; }
private void AddClause() { ClauseDisplay clauseDisplay = clauseSpawner.spawnClause(); activeClause = new Clause(clauseGenerator.getRandomClause(), clauseDisplay, this); }