Example #1
0
    private IEnumerator UpdateHuman()
    {
        while (true)
        {
            while (Time.timeScale == 0)
            {
                yield return(null);
            }

            des_move_dir = new Vector2(
                InputExt.GetAxis(PlayerID, Control.X),
                InputExt.GetAxis(PlayerID, Control.Y)).normalized;

            if (InputExt.GetKeyDown(PlayerID, Control.Action))
            {
                UsePower();
            }

            yield return(null);
        }
    }