Example #1
0
    public StreamAssignment CreateStreamAssignment()
    {
        StreamAssignment streamAssignment = Instantiate(streamAssignmentPrefab, Vector3.zero, Quaternion.identity) as StreamAssignment;

        streamAssignment.Init();
        return(streamAssignment);
    }
Example #2
0
    public void DisconnectStreamAssignment(AssignableLocation location)
    {
        StreamAssignment stream = streamAssignmentDict[location.LocID];

        streamAssignmentDict.Remove(location.LocID);
        stream.LocationDisconnect();
        streamPool.Enqueue(stream);
        if (streamPool.Count > 10)
        {
            Debug.Log("(DEBUG) Stream pool is grater than 10");
        }
    }