- Home /
 
               Question by 
               blomblomski · Feb 06, 2019 at 12:47 PM · 
                monodevelopmobile devicesmobileoptimization  
              
 
              Function not returning value on android
Hey, I have a function that returns the value, based on its activation time. This function works fine in the editor or on PC but if I build to android the function value always remains at 2 (default value) unless I tap the screen then it updates.
 public float ReturnStrikeTime()
 {
     return time;
 }
If I call the time value directly that works:
     if (striking.time <= 0)
     {
         testString = "Entered";
         uiController.ToggleCancelFishing();
     }
               Comment
              
 
               
              From the code you supplied, it's not clear at all.. what is 'time'? Where does it come from?
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                