public void OnPan() { localPlayer.GetComponent <PlayerController>().SetCurrentWeapon(localPlayer.name, "Pan"); localPlayer.GetComponent <PlayerController>().PurchaseItem(localPlayer.name, 10); localPlayer.GetComponent <PlayerController>().maxBulletNum = 999; localPlayer.GetComponent <PlayerController>().bulletLeft = 999; LocalManager.instance.UpdateBulletNumber(999, 999); GunIcon.SetActive(false); KnifeIcon.SetActive(false); PanIcon.SetActive(true); }
public void OnS686() { localPlayer.GetComponent <PlayerController>().SetCurrentWeapon(localPlayer.name, "S686"); localPlayer.GetComponent <PlayerController>().PurchaseItem(localPlayer.name, 35); localPlayer.GetComponent <PlayerController>().maxBulletNum = 7; localPlayer.GetComponent <PlayerController>().bulletLeft = 7; LocalManager.instance.UpdateBulletNumber(7, 7); KnifeIcon.SetActive(false); PanIcon.SetActive(false); GunIcon.SetActive(true); }
public void OnKar98k() { localPlayer.GetComponent <PlayerController>().SetCurrentWeapon(localPlayer.name, "Kar98k"); localPlayer.GetComponent <PlayerController>().PurchaseItem(localPlayer.name, 60); localPlayer.GetComponent <PlayerController>().maxBulletNum = 5; localPlayer.GetComponent <PlayerController>().bulletLeft = 5; LocalManager.instance.UpdateBulletNumber(5, 5); KnifeIcon.SetActive(false); PanIcon.SetActive(false); GunIcon.SetActive(true); }