Example #1
0
    // Use this for initialization
    void Start()
    {
        try
        {
            GetWord  = GameObject.Find("Canvas/Check/GetWord");
            DoorSide = GameObject.Find("Canvas/DoorSide");
            pat      = GameObject.Find("Canvas/PC/PatteringFase");
            GameObject getword = Resources.Load("Prefabs/MiniGame/Hacking/folder_word") as GameObject;
            hack_getword = getword.GetComponent <HackGetWord>();
        }
        catch
        {
            Debug.Log("Not Find");
        }

        Common.Instance.Shuffle(pos_list);
        GakuCount     = 0;
        patte         = GetComponent <PatteringEvent>();
        intopc_action = GetComponent <IntoPCAction>();
        hack_boss     = GetComponent <HackBoss>();
        Meishi.SetActive(false);
        _lowAnim     = false;
        _windowFase  = false;
        _animloop    = false;
        _getDocument = false;
    }
Example #2
0
    // Use this for initialization
    void Start()
    {
        into_pc   = GetComponent <IntoPCAction>();
        patte     = GetComponent <PatteringEvent>();
        hack_boss = GetComponent <HackBoss>();
        hack_tap  = GetComponent <HackTap>();

        collectObject = GameObject.Find("Canvas/Check/GetWord");
        es            = EventSystem.current;
        es.enabled    = false;
        ReadText();
        Theme();
        StartCoroutine(StartedTimer());

        _confirmActive = false;
        _allClear      = false;
        _timerActive   = false;
        _overTime      = false;
        _start_        = false;
        SoundManager.Instance.PlayBGM(BGMName.Hacking);
    }