示例#1
0
 public void OnTriggerExit(Collider other)
 {
     if (other == trackedHuman)
     {
         trackedHuman = null;
         float magnitude = (startPos - base.transform.position).To2D().magnitude;
         StatsAndAchievements.AddDumpster(magnitude);
     }
 }
示例#2
0
 public void Update()
 {
     if (trackedHuman != null)
     {
         float magnitude = (startPos - base.transform.position).To2D().magnitude;
         if (magnitude > 2f)
         {
             StatsAndAchievements.AddDumpster(magnitude);
             startPos = base.transform.position;
         }
     }
 }