예제 #1
0
        void FixedUpdate()
        {
            if (life_control.is_alive() && next_commands.ready)
            {
                apply_commands(next_commands);
                clear_commands();
            }

            animate_todo_please_replace_me();
        }
 // Update is called once per frame
 void Update()
 {
     if (life_control.is_alive())
     {
         animate();
     }
     if (life_control.is_alive_in_screen())
     {
         maybe_fire();
     }
 }
예제 #3
0
 // Update is called once per frame
 void Update()
 {
     if (life_control.is_alive())
     {
         move();
         animate();
         maybe_fire();
     }
 }