Esempio n. 1
0
 public void LoadBluePlayerPreview(PlayerInfo inf)
 {
     if (inf == null)
     {
         return;
     }
     BluePlayerPreview.gameObject.SetActive(true);
     BluePlayerPreview.LoadFromInfo(inf);
     danderScreen.PrepareLoader(2, inf);
     // Debug.Log("-- -- -- LoadBlue: " + inf);
 }
Esempio n. 2
0
 // Start is called before the first frame update
 protected override void Start()
 {
     gameController     = GameObject.Find("GameController").GetComponent <GameController>();
     bagSlots.cellSize  = new Vector2(Screen.width * 16 / 192, Screen.height * 16 / 108);
     infoSlots.cellSize = new Vector2(Screen.width * 0.0625f, Screen.height * 11 / 108);
     if (gameController.connector.localPlayerInfo.sex)
     {
         sexEquipString += "m/";
     }
     else
     {
         sexEquipString += "f/";
     }
     StartCoroutine(WaitAndLoad());
     base.Start();
     mpl = this.FindChildObject("MainPlayerPreview").GetComponent <PlayerPreviewLoader>();
     mpl.LoadFromInfo(gameController.GetLocalPlayerInfo());
 }
Esempio n. 3
0
 public void OnEnable()
 {
     if (gameController == null)
     {
         gameController   = GameObject.Find("GameController").GetComponent <GameController>();
         bagGrid.cellSize = new Vector2(Screen.width * 16 / 192, Screen.height * 16 / 108);
         foreach (GridLayoutGroup infs in infoGrid)
         {
             infs.cellSize = new Vector2(Screen.width * 0.0625f, Screen.height * 11 / 108);
         }
     }
     LoadStats();
     StartCoroutine(WaitAndLoad());
     if (mpl == null)
     {
         mpl = this.FindChildObject("MainPlayerPreview").GetComponent <PlayerPreviewLoader>();
     }
     mpl.LoadFromInfo(gameController.GetLocalPlayerInfo());
 }