Exemplo n.º 1
0
    public static void bornText(string name, Vector3 location, GameObject p)
    {
        GameObject temp = Instantiate(text, location, Quaternion.identity);  //+new Vector3(0,y,0)

        temp.transform.parent = p.transform;
        temp.GetComponent <TextMeshPro>().text = name;
        ZYC_YinxiaoController.zhuangzi();
    }
Exemplo n.º 2
0
    public void OnPointerClick(PointerEventData eventData)
    {
        ZYC_YinxiaoController.stopVoice();
        ZYC_SoundManager.stopVoice();
        SceneManager.LoadScene("MainTitle");

        /*
         * if(ZYC_YinxiaoController.getIsPlaying()||ZYC_SoundManager.getIsPlaying()){
         *  return;
         * }else{
         *  SceneManager.LoadScene("FirstPart");
         * }
         */
    }
 // Start is called before the first frame update
 void Start()
 {
     ZYC_YinxiaoController.kaimu();
     current = -1;
     Invoke("nextMatter", 0.015f);
 }