// Use this for initialization void Start() { avatarVision = GetComponent <VisionManager>(); animator = GetComponent <Animator>(); commandsQueue = new Queue <Command>(); aI = GetComponent <AgentInteraction>(); speech = GetComponent <AgentSpeech>(); locationsList = new List <GameObject>(); Debug.Log("RHS>>> " + this.name + " " + this.GetType() + " is ready."); }
// Use this for initialization222 void Start() { robotVision = robot.GetComponent <VisionManager>(); robotSmell = robot.GetComponent <SmellManager>(); robotHearing = robot.GetComponent <HearingManager>(); robotTaste = robot.GetComponent <TasteManager>(); robotTouch = robot.GetComponent <TouchManager>(); locationsOnScene = new List <GameObject>(GameObject.FindGameObjectsWithTag(Constants.TAG_KNOWLOCATIONS)); commandsQueue = new Queue <Command>(); aI = robot.GetComponent <AgentInteraction>(); aM = robot.GetComponent <AgentMovement>(); hM = robot.GetComponent <AgentHeadMovement>(); sp = robot.GetComponent <AgentSpeech>(); locationsList = new List <GameObject>(locationsOnScene); Debug.Log("RHS>>> " + this.name + " ready."); }
// Use this for initialization void Start() { if (avatar != null) { aM = avatar.GetComponent <AvatarManager>(); speech = avatar.GetComponent <AgentSpeech>(); dropdownSelected = false; listObjects = new List <GameObject>(); listSwitchs = new List <GameObject>(); setItensInActionDropdown(aM.getAvailableActions()); setItensInEmotionsDropdown(); emotionStatus = avatar.GetComponent <EmotionStatus>(); if (emotionStatus != null) { dropdownEmotions.value = (int)emotionStatus.getEmotion(); } else { Debug.Log("RHS>>> Avatar " + avatar.name + " doesn't have Emotions"); } } }