Beispiel #1
0
 private void FillData(FishData data, CanvasFishAccessor canvasValues)
 {
     data.AmountLeft    = int.Parse(canvasValues.LeftAmount);
     data.BaitAmount    = int.Parse(canvasValues.Bait);
     data.NeptuneAmount = int.Parse(canvasValues.Neptune);
     data.NewlyCatched  = int.Parse(canvasValues.NewlyCatched);
     data.NicolasAmount = int.Parse(canvasValues.Nicolas);
     data.Premonition   = canvasValues.Premonition;
     data.StorageAmount = int.Parse(canvasValues.Storage);
     data.SupportAmount = int.Parse(canvasValues.Support);
     data.TotalQuantity = int.Parse(canvasValues.TotalQuantity);
     data.UpgradeAmount = int.Parse(canvasValues.UpgradeCost);
 }
Beispiel #2
0
 public CanvasAccessor()
 {
     A = new CanvasFishAccessor(GameManager.s_Instance.m_AInputFields, GameManager.s_Instance.m_ATexts, GameManager.s_Instance.m_AToggle);
     B = new CanvasFishAccessor(GameManager.s_Instance.m_BInputFields, GameManager.s_Instance.m_BTexts, GameManager.s_Instance.m_BToggle);
     C = new CanvasFishAccessor(GameManager.s_Instance.m_CInputFields, GameManager.s_Instance.m_CTexts, GameManager.s_Instance.m_CToggle);
 }