Пример #1
0
 // Use this for initialization
 void Start()
 {
     dialogue          = GetComponent <DialogueTree> ();
     stress            = GetComponent <StressingOut> ();
     eye               = GetComponent <EyeContact> ();
     conversationLevel = 50f;
 }
Пример #2
0
    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>();
    }
Пример #3
0
    //public float fidgetValue;

    // Use this for initialization
    void Start()
    {
        cm       = GetComponent <ConversationManager> ();
        dialogue = GetComponent <DialogueTree> ();
        eye      = GetComponent <EyeContact> ();
    }