Beispiel #1
0
 // Start is called before the-first frame update
 void Start()
 {
     C  = FindObjectOfType <coilStats>();
     pS = FindObjectOfType <proceduralSpawning>();
     uS = FindObjectOfType <upgradeSystem>();
     numberOfEnemies = 0;
 }
Beispiel #2
0
    // Start is called before the first frame update
    void Start()
    {
        uS = FindObjectOfType <upgradeSystem>();


        InvokeRepeating("updateTarget", 0f, 0.5f);

        // Periodic function for
        FunctionPeriodic.Create(() =>
        {
            if ((uS.hasMiniCoil == true) && (targetLocked != null))
            {
                miniCoilAggro();
            }
        }, 60f / miniCoilFireRate);
    }