Esempio n. 1
0
 public void set_move_type(move_type move_type_in)
 {
     if (moving != move_type.dash & move_type_in == move_type.dash & !recovering)
     {
         // if NOT dashing, and NOT recovering, start dashing
         dash_time = Time.time;
         moving    = move_type.dash;
     }
     else if (moving == move_type.dash & !recovering)
     {
         // if dashing currently, and not recovering, continue dashing
         moving = move_type.dash;
     }
     else if (recovering & move_type_in == move_type.dash)
     {
         moving = move_type.normal;
     }
     else
     {
         // otherwise do whatever the inputed movement type is
         moving = move_type_in;
     }
 }
Esempio n. 2
0
 void Start()
 {
     moving     = move_type.still;
     visibility = 0f;
 }