private void NpcPointsSystem_OnPointsChanged(object sender, PointsSystem.OnPointsDataEventArgs e)
 {
     peopleOnBoat = GameManager.npcPointsSystem.currentPoints;
     if (peopleCountBar != null)
     {
         peopleCountBar.SetVelocity(peopleOnBoat);
     }
 }
Example #2
0
 private void NpcPointsSystem_OnPointsChanged(object sender, PointsSystem.OnPointsDataEventArgs e)
 {
     textPeople.rectTransform.localScale = defaultScale;
     textPeople.rectTransform.DOShakeScale(shakeForce, shakeDuration);
     textPeople.text = "People On\n the Boat: " + GameManager.npcPointsSystem.currentPoints;
 }