private void Start()
    {
        GameObject thePlayer  = GameObject.Find("Player");
        ZaWarudo   FreezeTime = thePlayer.GetComponent <ZaWarudo>();

        TimeStop = FreezeTime.WarudoStop;
    }
    private void UpdateTime()
    {
        GameObject thePlayer  = GameObject.Find("Player");
        ZaWarudo   FreezeTime = thePlayer.GetComponent <ZaWarudo>();

        TimeStop = FreezeTime.WarudoStop;
        //Debug.Log(TimeStop);
        //Debug.Log("Time Stop");
    }
    private void Start()
    {
        goal  = GameObject.FindGameObjectWithTag("Player").transform;
        agent = GetComponent <NavMeshAgent>();
        timer = knockbackTime;
        GameObject thePlayer  = GameObject.Find("Player");
        ZaWarudo   FreezeTime = thePlayer.GetComponent <ZaWarudo>();

        TimeStop = FreezeTime.WarudoStop;
    }
Ejemplo n.º 4
0
    private void UpdateWarudo()
    {
        GameObject thePlayer = GameObject.Find("Player");

        ZaWarudo Ready = thePlayer.GetComponent <ZaWarudo>();

        ZaWarudoReady = Ready.ZaWarudoReady;

        ZaWarudo Active = thePlayer.GetComponent <ZaWarudo>();

        ZaWarudoActive = Active.ZaWarudoActive;

        ZaWarudo Timer = thePlayer.GetComponent <ZaWarudo>();

        ZaWarudoTimer = Timer.moveTimer;
    }
Ejemplo n.º 5
0
    public void Start()
    {
        GameManager.RoundComplete += ResetRound;
        ResetRound();
        while (spawned < getAmount)
        {
            //Increment the amount spawned count.
            spawned++;
            //Create the prefab as an instance.
            GameObject instance = Instantiate(spawn, transform);
            enemies.Add(new Enemy(instance, false));
            //Removes the spawned object from the spawner object.
            instance.transform.parent = null;
            instance.SetActive(false);
        }
        ResetRound();
        GameObject thePlayer  = GameObject.Find("Player");
        ZaWarudo   FreezeTime = thePlayer.GetComponent <ZaWarudo>();

        TimeStop = FreezeTime.WarudoStop;
    }