// Use this for initialization void Start() { player = GameObject.FindGameObjectWithTag("Player"); alexObservation = player.GetComponent <AlexDialogueLvl_1andTutorial> (); goRenderer = GetComponent <SpriteRenderer> (); characterBehaviour = player.GetComponent <CharacterBehaviour> (); gameController = GameObject.FindGameObjectWithTag("GameController").GetComponent <GameController>(); }
//Use this for initialization void Start() { playerStats = player.GetComponent <CharacterBehaviour>(); hud = gameObject.GetComponent <HUD>(); travelSprite = travelSpritesGo.GetComponent <PlaySprite>(); if (level == 2) { Debug.Log("FUNCIONA VANISHED Y"); yVanished2 = -3.1f; yVanished1 = -10.4f; } alexDialogue = player.GetComponent <AlexDialogueLvl_1andTutorial> (); if (level == 2) { onTutorial = false; } }
void Start() { gameControllerGo = GameObject.FindGameObjectWithTag("GameController"); gameController = gameControllerGo.GetComponent <GameController> (); alexMonologue = GameObject.FindGameObjectWithTag("Player").GetComponent <AlexDialogueLvl_1andTutorial> (); }
// Use this for initialization void Start() { levelManager = gameController.GetComponent <LevelManager> (); monologue = GameObject.FindGameObjectWithTag("Player").GetComponent <AlexDialogueLvl_1andTutorial> (); }
public void ListenToPrivateConversation() { AlexDialogueLvl_1andTutorial alexMonologue = character.GetComponent <AlexDialogueLvl_1andTutorial> (); alexMonologue.AlexsObservations("PrivateConversation"); }