Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     try
     {
         PC_login     = GameObject.Find("Canvas/PC/PassWordFase/Title");
         Window       = GameObject.Find("Canvas/PC/WindowFase/Window");
         WindowFase   = GameObject.Find("Canvas/PC/WindowFase");
         PassWordFase = GameObject.Find("Canvas/PC/PassWordFase");
     }
     catch (Exception e)
     {
         Debug.Log(e);
     }
     _compariClear = false;
     PassWordFase.transform.SetSiblingIndex(2);
     tappingCount   = 6;
     CountText.text = tappingCount.ToString();
     Window.SetActive(false);
     Document_1.SetActive(false);
     NotComp.SetActive(true);
     Comparisoning.SetActive(false);
     comp_btn.SetActive(true);
     folder_text.SetActive(false);
     hack_main     = GetComponent <HackMain>();
     hack_tap      = GetComponent <HackTap>();
     doc_0         = false;
     doc_1         = false;
     _isWindowAnim = false;
 }
Exemplo n.º 2
0
    // 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));
    }
Exemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     GetWord      = GameObject.Find("Canvas/Check/GetWord");
     Meishi_rect  = GameObject.Find("Canvas/Zoom/Meishi/meishi_move").GetComponent <RectTransform>();
     MeishiObject = GameObject.Find("Canvas/Zoom/Meishi/Image");
     Damy_meishi  = GameObject.Find("Canvas/Desk/Meishi");
     MeishiObject.SetActive(false);
     hack_tap  = GameObject.Find("controll").GetComponent <HackTap>();
     hack_main = GameObject.Find("controll").GetComponent <HackMain>();
     _document = false;
 }
Exemplo n.º 4
0
 // Use this for initialization
 void Start()
 {
     quen      = DOTween.Sequence();
     hack_tap  = GetComponent <HackTap>();
     hack_main = GetComponent <HackMain>();
     getDocument_obj.SetActive(false);
     SpeedyObject.SetActive(false);
     LowObject.SetActive(false);
     Get_Yellow.SetActive(false);
     _lowAnimClear    = false;
     _speedyAnimClear = false;
     _success         = false;
     _PatteringPlay   = false;
     successCount     = 0;
 }
Exemplo n.º 5
0
 private void Awake()
 {
     try
     {
         hack_main           = GameObject.Find("controll").GetComponent <HackMain>();
         hack_tap            = GameObject.Find("controll").GetComponent <HackTap>();
         GetWord             = GameObject.Find("Canvas/Check/GetWord");
         CollectedWord       = GameObject.Find("Canvas/PC/PassWordFase/Collect");
         CollectedPrefab     = Resources.Load("Prefabs/MiniGame/Hacking/str") as GameObject;
         GetWordPrefab       = Resources.Load("Prefabs/MiniGame/Hacking/WordImage") as GameObject;
         GetWordFolderPrefab = Resources.Load("Prefabs/MiniGame/Hacking/folder_str") as GameObject;
         CollectFolderPrefab = Resources.Load("Prefabs/MiniGame/Hacking/folder_str") as GameObject;
     }
     catch
     {
         Debug.Log("Not Find");
     }
     getNum.Clear();
     getDrawerNum.Clear();
 }
Exemplo n.º 6
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);
    }