Ejemplo n.º 1
0
 private void Awake()
 {
     DontDestroyOnLoad(gameObject);
     staticInformation = staticInfo;
     for (int i = 0; i < colorManaging.amountColorOptions; i++)
     {
         colorManaging.colorPicks.Add(new ColorPick()
         {
             color = Color.HSVToRGB((float)i / colorManaging.amountColorOptions + 1f / colorManaging.amountColorOptions, 1, 1)
         });
     }
     staticColorManaging     = colorManaging;
     AudioManager.audioMixer = staticInformation.audioMixer;
     if (options)
     {
         options.OptionsInit();
     }
 }
Ejemplo n.º 2
0
 /**
  * Start- For instantiation, grabs the static information which should have been entered from the main menu
  * and then proceeds to connect to a Photon server.
  */
 void Start()
 {
     menuInformation = GameObject.Find("StaticInformation").GetComponent <StaticInformation> ();
     Debug.Log("The player name is: " + menuInformation.playerName);
     Connect();
 }