示例#1
0
    private void FastPickups()
    {
        //IT WORKS        Debug.Log("FastPickups started !!");

        foreach (GameObject powerUp in _powerUPs)
        {
            //IT WORKS            Debug.Log("FastPickup no " + powerUp.name + " started !!");
            Powerup _powerUPscript = powerUp.GetComponent <Powerup>();
            _powerUPscript.AssignFastPickups(true);
            //        _isFastPickupsActive = false;
        }

/* clear the array ? not neceessary - better the found solution !
 *      {
 *          Array.Clear(_powerUPs, 0, _powerUPs.Length);
 *          _powerUPs = null;
 *      }
 */
    }