Exemple #1
0
 override protected void FixedUpdate()
 {
     base.FixedUpdate();
     if (Vector3.Distance(transform.position, human.transform.position) < 1)
     {
         loveHuman.SetBool("love", true);
         HandleGoodBoy(CurrentGoodBoy + 2);
         uiTrigger.SpawnText("+Good Boy", new Color(0.07226842f, 0.4339623f, 0f, 1f));
     }
     else
     {
         loveHuman.SetBool("love", false);
         HandleGoodBoy(CurrentGoodBoy - 1);
     }
 }