dont calculate 2 function at the same time

 

hi guys i have 2 function

function 1 and function 2

function 1 has has a formula that the answer of that formula is will be used by function 2. My problem is that function 1 and function 2 is calculating at the same time that is why function 1 is giving the wrong answer to function 2. I want is that function 1 calculate after first then function 2 after function 1.

 
How do you call two functions at the same time?
 
mark692:

hi guys i have 2 function

function 1 and function 2

function 1 has has a formula that the answer of that formula is will be used by function 2. My problem is that function 1 and function 2 is calculating at the same time that is why function 1 is giving the wrong answer to function 2. I want is that function 1 calculate after first then function 2 after function 1.

my two function is inside a function 

void OnTick()
  {


 if (LastActionTime != Time[0])
   {
 
         Function1;        
         Function2;
               
       LastActionTime = Time[0];
     
    }    

}
 
mark692:

my two function is inside a function 

In your example they are calculating one after the other, not at the same time. Post the complete code or a better example to enable us to help you.