void Awake() { for (int x = 0; x < AllChannels.Length; x++) { AllChannels[x] = new QT_MCChannels(); } tempColors[0] = new Color(.47f, .439f, .372f); tempColors[1] = new Color(.309f, .243f, .176f); tempColors[2] = new Color(.439f, .372f, .301f); tempColors[3] = new Color(.239f, .239f, .239f); tempColors[4] = new Color(.384f, .384f, .384f); tempColors[5] = new Color(.243f, .2f, .137f); //setup some defaults when the script first runs. AllChannels[0].Color = new float[4] { .47f, .439f, .372f, 1f }; AllChannels[1].Color = new float[4] { .309f, .243f, .176f, 1f }; AllChannels[2].Color = new float[4] { .439f, .372f, .301f, 1f }; AllChannels[3].Color = new float[4] { .239f, .239f, .239f, 1f }; AllChannels[4].Color = new float[4] { .384f, .384f, .384f, 1f }; AllChannels[5].Color = new float[4] { .243f, .2f, .137f, 1f }; }
void Awake() { for (int x = 0; x < AllChannels.Length; x++) AllChannels[x] = new QT_MCChannels(); tempColors[0] = new Color(.47f, .439f, .372f); tempColors[1] = new Color(.309f, .243f, .176f); tempColors[2] = new Color(.439f, .372f, .301f); tempColors[3] = new Color(.239f, .239f, .239f); tempColors[4] = new Color(.384f, .384f, .384f); tempColors[5] = new Color(.243f, .2f, .137f); //setup some defaults when the script first runs. AllChannels[0].Color = new float[4] { .47f, .439f, .372f,1f }; AllChannels[1].Color = new float[4] { .309f, .243f, .176f,1f }; AllChannels[2].Color = new float[4] { .439f, .372f, .301f,1f }; AllChannels[3].Color = new float[4] { .239f, .239f, .239f,1f }; AllChannels[4].Color = new float[4] { .384f, .384f, .384f,1f }; AllChannels[5].Color = new float[4] { .243f, .2f, .137f,1f }; }