예제 #1
0
파일: UIManager.cs 프로젝트: MoCastle/GGJ
 private void MyOnClick(GameObject button)
 {
     if (canMove)
     {
         if (Button_001 != null && button == Button_001.GetComponent <Button>().gameObject)
         {
             thisScene = 1;
             ToBlack tb = GameObject.Find("ToBlack").GetComponent <ToBlack>();
             tb._ToBlack();
         }
         if (Exit != null && button == Exit.GetComponent <Button>().gameObject)
         {
             /////
             ShowBox("Scene5");
             /////
             Debug.Log("Exit");
         }
         if (ReStart != null && button == ReStart.GetComponent <Button>().gameObject)
         {
             Debug.Log("ReStart");
             GameCtrler.Ctrler.ResetPlayer();
         }
         if (Story != null && button == Story.GetComponent <Button>().gameObject)
         {
             All_Story.text = All_Text;
             StoryBook.transform.DOScale(1, 0.3f);
             Debug.Log("Story");            //
         }
         if (button == Next.gameObject)
         {
             Debug.Log("Next");
         }
         if (button == Return.gameObject)
         {
             StoryBook.transform.DOScale(0, 0.4f);
             Debug.Log("Return");
         }
     }
     if (button == NextInfor.gameObject && !spc)
     {
         Which_Text(Scene_id);
     }
     else if (button == NextInfor.gameObject && spc)
     {
         Talk_Spc(spc_id);
     }
 }
예제 #2
0
    // Start is called before the first frame update
    private void Start()
    {
        if (Instance != null)
        {
            Destroy(this);
            return;
        }
        Instance = this;
        DontDestroyOnLoad(this.gameObject);

        //    T_CG_004.text = null;
        col.a = 0;
        Black.DOColor(col, 0);
        BLACK.color = col;
        col.a       = 1;
        //  _ToBlack();
    }