Esempio n. 1
0
    // Start is called before the first frame update
    void Start()
    {
        charPicObj.sprite = charPic[BoxIndex];
        charNameObj.text  = charName[BoxIndex];
        messageObj.text   = message[BoxIndex];
        Time.timeScale    = 0;

        player           = GameObject.FindObjectOfType <Player_cube_control>();
        player.JumpForce = 0;
        //player.gameObject.SetActive(false);
    }
Esempio n. 2
0
 void Start()
 {
     currentImg        = GetComponent <Image>();
     currentImgIndex   = 0;
     currentImg.sprite = cutSceneArr[currentImgIndex];
     Time.timeScale    = 0;
     player            = GameObject.FindObjectOfType <Player_cube_control>();
     player.JumpForce  = 0;
     player.gameObject.GetComponentInChildren <AudioSource>().enabled = false;
     //player.gameObject.SetActive(false);
 }
Esempio n. 3
0
    // Start is called before the first frame update
    void Start()
    {
        currentImg        = GetComponent <Image>();
        currentImgIndex   = 0;
        currentImg.sprite = cutSceneArr[currentImgIndex];
        Time.timeScale    = 0;
        player            = GameObject.FindObjectOfType <Player_cube_control>();
        player.JumpForce  = 0;
        player.gameObject.SetActive(false);
        CutSceneEnd = false;



        charPicObj.sprite = charPic[BoxIndex];
        charNameObj.text  = charName[BoxIndex];
        messageObj.text   = message[BoxIndex];
        DialogueObj.SetActive(false);
    }
Esempio n. 4
0
 // Start is called before the first frame update
 void Start()
 {
     PlayerMainScript = GetComponent <Player_cube_control>();
 }