public void FireMissleWrapper() { GameObject targetPlanet = currentClickedPlanet; if (stockPile.GetMissiles() > 0) { if (CheckInRange(targetPlanet)) { photonView.RPC("FireMissle", PhotonTargets.All, planetStats.GetStat(StatType.Damage).GetValue(), planetStats.GetStat(StatType.Speed).GetValue(), targetPlanet.GetPhotonView().viewID ); OnMissileFired(); } } }
void UpdateStockPileUI() { missleStockPileTxt.text = stockPile.GetMissiles().ToString(); }