예제 #1
0
 private void FixedUpdate()
 {
     if (rb.IsSleeping() && !settled)    //If the RB has gone to sleep and we are not yet settled, it means we have just settled
     {
         owner.ResultIn(EvaluateDice()); //Tells the DiceRoller that spawned us what the result was
         settled = true;                 //We are now settled, so we only send one result to the owner script
     }
 }