// Start is called before the first frame update void Start() { currentState = startingState; textComponent.text = currentState.getStateStory(); //set up the background GameObject backdrop = GameObject.Find("backdrop"); bdB = backdrop.GetComponent <backdropBehaviour>(); //set up the character GameObject character = GameObject.Find("character"); charBehav = character.GetComponent <characterBehaviour>(); //set up the choice buttons //GameObject choiceButtons = GameObject.Find("selectButtons"); //buttonBehav = choiceButtons.GetComponent<selectionHandler>(); updateAll(); }
public void setPlayer(GameObject newPlayer) { p = newPlayer.GetComponent <characterBehaviour> (); }