void Start() { _convoPlayer = GetComponent<ConversationPlayer>(); KillAllButtons(); _conversationElements.SetActive(false); }
void Start() { // Should only be one _convoPlayer = FindObjectOfType<ConversationPlayer>(); if ( _convoPlayer != null ) _convoPlayer._conversationEnd.AddListener( () => OnConversationEnd() ); _controls = GetComponent<UnityStandardAssets._2D.Platformer2DUserControl>(); }
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(); } }
void failPlayer_onConversationEnd(ConversationPlayer player) { player.ConversationEnd -= failPlayer_onConversationEnd; CheckpointManager.instance.GotoLastCheckpoint(this); }