Esempio n. 1
0
 private void CheckRemoveCookie()
 {
     if (StaticData.GameSessionMode == SessionMode.PlayingMode)
     {
         if (RigidsHelperModule.GetDistance(this, StaticData.EngineManager.CookieRB)
             <= PlayabilitySimulatorEngineProlog.NarrativeDist)
         {
             //this.TextureType = TextureType.FrogWithCookie;
             StaticData.EngineManager.RigidsManagerEngine.ListOfSphereRigids.Remove(
                 StaticData.EngineManager.CookieRB);
             IsWon = true;
         }
     }
 }
 public double GetCookieFrogDistance()
 {
     return(RigidsHelperModule.GetDistance(StaticData.EngineManager.CookieRB, StaticData.EngineManager.FrogRB));
 }