Пример #1
0
    private void HackerHit(GameObject thiefHacker)
    {
        ThiefHackerManager thiefHackerScript = thiefHacker.GetComponent <ThiefHackerManager>();

        if (spawnSorter.map1)
        {
            thiefHacker.transform.position = spawnSorter.thiefHackerSpawn;
        }
        if (spawnSorter.map2)
        {
            thiefHacker.transform.position = spawnSorter.thiefHackerSpawn;
        }
        if (spawnSorter.map3)
        {
            thiefHacker.transform.position = spawnSorter.thiefHackerSpawn;
        }
    }
Пример #2
0
    private void Update()
    {
        if (photonView.isMine)
        {
            arrowAlarmImage  = GameObject.Find("AlarmArrowImage");
            thiefHackerArrow = GameObject.Find("ThiefHackerImage");
            thiefChaserArrow = GameObject.Find("ThiefCollectorImage");
        }
        FindingAlarms();

        if (thiefHackerManager == null)
        {
            thiefHacker        = GameObject.FindGameObjectWithTag("ThiefHacker");
            thiefHackerManager = GameObject.FindGameObjectWithTag("ThiefHacker").GetComponent <ThiefHackerManager>();
        }
        if (thiefCollectorManager == null)
        {
            thiefCollector        = GameObject.FindGameObjectWithTag("ThiefCollector");
            thiefCollectorManager = GameObject.FindGameObjectWithTag("ThiefCollector").GetComponent <ThiefCollectorManager>();
        }


        if (stunActivated)
        {
            StartCoroutine(Stunned());
        }


        // if (GameObject.FindGameObjectWithTag("ThiefCollector") == null)
        // {
        //     thiefCollector = GameObject.FindGameObjectWithTag("ThiefCollector");
        // }
        // if (GameObject.FindGameObjectWithTag("ThiefHacker") == null)
        // {
        //     thiefHacker = GameObject.FindGameObjectWithTag("ThiefHacker");
        // }

        FogStatus();
        timeLeft     -= Time.deltaTime;
        stunCoolDown -= Time.deltaTime;
    }