When Using Mathf.Repeat and Time.deltaTime to constantly loop a variable, is there a way to easily keep track of how many times said variable has been looped (I have tried things like "if(Looping_Value==x)Loop_Count+=1" but it does not work out)? What am I doing wrong? Thanks
function Update(){
var Looping_Value : float = Mathf.Repeat(Looping_Value + (Time.deltaTime), 100);
var Loop_Count : int;
}
↧