コード例 #1
0
ファイル: HackBoss.cs プロジェクト: Syatiku/Syatiku
    // Use this for initialization
    void Start()
    {
        hack_tap  = GetComponent <HackTap>();
        hack_main = GetComponent <HackMain>();
        patte     = GetComponent <PatteringEvent>();
        into_pc   = GetComponent <IntoPCAction>();
        boss_text = GetComponent <BossText>();
        boss_rect = Boss.GetComponent <RectTransform>();

        ChooseObject.SetActive(false);
        ComeBoss.SetActive(false);
        _commingboss = false;
        _gameover    = false;
        _choosing    = false;
        _chooseTap   = false;
        _maxtext     = false;
        _onece       = false;
        _tapSuccece  = false;
        comingCount  = 0;
        rand_count   = 0;
        time_state   = 0;
        Bosswait     = BossTimer;
        req          = 0f;
        timer        = hack_main.timer;
        sequence     = DOTween.Sequence();
        seq2         = DOTween.Sequence();
        Boss.transform.localPosition = new Vector2(-885, -277);
        time = 5f;
        sequence.Append(Yazirusi.DOLocalMoveX(875, timer).SetEase(Ease.Linear));
    }
コード例 #2
0
ファイル: HackTap.cs プロジェクト: Syatiku/Syatiku
    // 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;
    }
コード例 #3
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);
    }