// Use this for initialization void Start() { dialogue = GetComponent <DialogueTree> (); stress = GetComponent <StressingOut> (); eye = GetComponent <EyeContact> (); conversationLevel = 50f; }
void OnEnable() { GameObject playerEyeContactPrefab = ResourceManager.LoadObject ("Player/" + ApplicationState.Instance.selectedCharacter + "EyeContact"); playerEyeContact = Instantiate(playerEyeContactPrefab) as GameObject; playerEyeContact.transform.parent = DialogueWindow.instance.playerParentTransform; playerEyeContact.transform.localPosition = playerEyeContactPrefab.transform.position; playerEyeContact.transform.localScale = playerEyeContactPrefab.transform.localScale; Resources.UnloadUnusedAssets(); arrowControl = playerEyeContact.GetComponentInChildren<EyeContact>(); arrowControl.minigame = minigame; arrowControl.ending = GameObject.Find("Ending").GetComponent<Dialogue>(); }
//public float fidgetValue; // Use this for initialization void Start() { cm = GetComponent <ConversationManager> (); dialogue = GetComponent <DialogueTree> (); eye = GetComponent <EyeContact> (); }