Ejemplo n.º 1
0
	void Start()
	{
		_convoPlayer = GetComponent<ConversationPlayer>();

		KillAllButtons();
		_conversationElements.SetActive(false);
	}
Ejemplo n.º 2
0
	void Start()
	{
		// Should only be one
		_convoPlayer = FindObjectOfType<ConversationPlayer>();

		if ( _convoPlayer != null )
			_convoPlayer._conversationEnd.AddListener( () => OnConversationEnd() );

		_controls = GetComponent<UnityStandardAssets._2D.Platformer2DUserControl>();
	}
Ejemplo n.º 3
0
 void conversationManager_OnConversationStart(ConversationPlayer player)
 {
     // If Lucy is in this conversation, make sure she is close to the player
     if (player.GetConversationActors().Contains(this.gameObject))
     {
         StartTalking();
     }
 }
Ejemplo n.º 4
0
 void failPlayer_onConversationEnd(ConversationPlayer player)
 {
     player.ConversationEnd -= failPlayer_onConversationEnd;
     CheckpointManager.instance.GotoLastCheckpoint(this);
 }