Exemple #1
0
    private void Start()
    {
        //메인배경음 재생, 블럭을 옮기는 중일때에는 볼륨 0.3f로 설정
        MainBGM.PlaySound();
        MainBGM.SetLoop(true);
        MainBGM.SetVolume(0.7f);
        clear          = false;
        isopen         = false;
        flagposition_y = flag.transform.position.y;
        ExplainUI.SetActive(isopen);

        Actor       = GameObject.Find("Mario").GetComponent <Mario>();
        MovableTile = GameObject.Find("MovableItem").GetComponentsInChildren <Drager>();
        Inventory   = GameObject.Find("Inventory").GetComponentsInChildren <Drager>();
        Goomba      = GameObject.Find("Enemies").GetComponentsInChildren <Mario_Goomba>();
        buttonArea  = GameObject.Find("ButtonArea").GetComponent <Collider2D>();
    }
Exemple #2
0
    // Start is called before the first frame update
    void Start()
    {
        MainBGM.PlaySound();
        MainBGM.SetLoop(true);
        MainBGM.SetVolume(0.7f);
        StartBGM.PlaySound();

        isopen    = false;
        clearOnce = false;
        ExplainUI.SetActive(isopen);

        arabian          = GameObject.Find("Enemy").GetComponentsInChildren <MS_Arabian>();
        soldier          = GameObject.Find("Enemy").GetComponentsInChildren <MS_Soldier>();
        healthController = GameObject.Find("Enemy").GetComponentsInChildren <MS_HealthController>();

        MovableTile = GameObject.Find("MovableItem").GetComponentsInChildren <Drager>();
        Inventory   = GameObject.Find("Inventory").GetComponentsInChildren <Drager>();
        buttonArea  = GameObject.Find("ButtonArea").GetComponent <Collider2D>();
    }
Exemple #3
0
 public void OpenExplain()
 {
     isopen = !isopen;
     ExplainUI.SetActive(isopen);
 }