示例#1
0
    void RandomMove()
    {
        System.Array values      = EDirection.GetValues(typeof(EDirection));
        int          randomIndex = Random.Range(0, values.Length);
        EDirection   Dir         = (EDirection)values.GetValue(randomIndex);

        m_Char.Move(Dir);
    }