Beispiel #1
0
 // public int tranform;
 // Use this for initialization
 void Start()
 {
     // select_script = FindObjectOfType<select_script>();
     //select_script = GameObject.Find("talkmanager").GetComponent<select_script>();
     select_script      = this.GetComponent <select_script>();
     Animationcontorler = GameObject.Find("player").GetComponent <Animationcontorler>();
     UsageCase          = GameObject.Find("talkmanager").GetComponent <UsageCase>();
     talk         = NPCcontroller_test.ins.gameObject.GetComponent <NPCcontroller_test>();
     string_where = "該去哪裡呢?";
 }
Beispiel #2
0
        void Awake()
        {
            playCG      = FindObjectOfType <PlayerUIimage>();
            Textname    = FindObjectOfType <textname>();
            option_0    = FindObjectOfType <option>();
            UsageCase_0 = this.GetComponent <UsageCase>();

            //Register the Keywords Function.
            specialCharFuncMap.Add("w", () => StartCoroutine(CmdFun_w_Task()));
            specialCharFuncMap.Add("r", () => StartCoroutine(CmdFun_r_Task()));
            specialCharFuncMap.Add("l", () => StartCoroutine(CmdFun_l_Task()));
            specialCharFuncMap.Add("lr", () => StartCoroutine(CmdFun_lr_Task()));
            specialCharFuncMap.Add("option", () => StartCoroutine(CmdFun_option_Task()));
            specialCharFuncMap.Add("plus", () => StartCoroutine(CmdFun_plus_Task()));
            specialCharFuncMap.Add("mei", () => StartCoroutine(CmdFun_mei_Task()));
            specialCharFuncMap.Add("mom", () => StartCoroutine(CmdFun_mom_Task()));
            specialCharFuncMap.Add("mom_happy", () => StartCoroutine(CmdFun_mom_happy_Task()));
            specialCharFuncMap.Add("mei_happy", () => StartCoroutine(CmdFun_mei_happy_Task()));
            specialCharFuncMap.Add("P_name", () => StartCoroutine(CmdFun_P_name_Task()));
            specialCharFuncMap.Add("M_name", () => StartCoroutine(CmdFun_M_name_Task()));
        }
Beispiel #3
0
    void Start()
    {
        canvas             = GameObject.Find("Canvas");
        selectscene_panel  = canvas.transform.Find("selectscene_panel").gameObject;
        panel              = canvas.transform.Find("Panel").gameObject;
        NPC_2D             = panel.transform.GetChild(1).gameObject;
        NPC_2D_big         = panel.transform.GetChild(2).gameObject;
        Player_2D          = panel.transform.GetChild(3).gameObject;
        nametext           = panel.transform.GetChild(6).gameObject;
        text_word          = panel.transform.GetChild(4).gameObject.GetComponent <Text>();
        DialogueHolder_NPC = FindObjectOfType <DialogueHolder_NPC>();
        //NPC_change=NPC_2D;
        //--------------------
        NPC_image   = NPC_2D.GetComponent <Image>();
        NPC_B_image = NPC_2D_big.GetComponent <Image>();
        NPC_anim    = NPC_2D.GetComponent <Animator>();
        NPC_B_anim  = NPC_2D_big.GetComponent <Animator>();
        //---------------------
        UC     = this.GetComponent <UsageCase>();
        msgSys = this.GetComponent <ES_MessageSystem>();
        player = FindObjectOfType <Animationcontorler>();
        NPC    = FindObjectOfType <DialogueHolder_player>();

        if (panel != null)
        {
            panel.SetActive(false);
            selectscene_panel.SetActive(false);
        }
        else
        {
            Debug.Log("F**k!");
        }
        time_i = 0;
        //  Player_2D.SetActive(false);
        //  NPC_2D.SetActive(false);
        fade_P = true;
        NPC_2D_big.SetActive(false);
    }
 void Start()
 {
     talkcontrol = GameObject.Find("MsgSystem").GetComponent <UsageCase>();
     Masys       = GameObject.Find("MsgSystem").GetComponent <MainSystem>();
 }