Пример #1
0
    public List <GameObject> GetFiniteObjectRequest(int count, bool active, float lifeTime, Vector3 pos, Vector3 rot, Vector3 scale)
    {
        List <GameObject> list = GetObjectRequest(count, active, pos, rot, scale);

        for (int i = 0; i < count; ++i)
        {
            ObjectState state = list[i].GetComponent <ObjectState>();
            state.SetReleaseTimer(lifeTime);
        }

        return(list);
    }