private void Test()
 {
     ActionBeat[] test = new ActionBeat[8];
     for (int i = 0; i < 8; ++i)
     {
         test[i] = new ActionBeat(1, (Action)((i % 4) + 1));
     }
     SetImages(test);
 }
Beispiel #2
0
    private void Awake()
    {
        monsterCount  = 0;
        monsterHealth = new int[6] {
            2, 2, 2, 2, 4, 10
        };
        actionBeatsList = new ActionBeat[6][][];

        //0번째 몬스터 체력 2
        actionBeatsList[0]       = new ActionBeat[2][];
        actionBeatsList[0][0]    = new ActionBeat[4];
        actionBeatsList[0][0][0] = new ActionBeat(4, Action.Up);
        actionBeatsList[0][0][1] = new ActionBeat(4, Action.Up);
        actionBeatsList[0][0][2] = new ActionBeat(4, Action.Up);
        actionBeatsList[0][0][3] = new ActionBeat(4, Action.Attack);
        actionBeatsList[0][1]    = new ActionBeat[4];
        actionBeatsList[0][1][0] = new ActionBeat(4, Action.Down);
        actionBeatsList[0][1][1] = new ActionBeat(4, Action.Down);
        actionBeatsList[0][1][2] = new ActionBeat(4, Action.Down);
        actionBeatsList[0][1][3] = new ActionBeat(4, Action.Attack);

        //1번째 몬스터 체력 2
        actionBeatsList[1]       = new ActionBeat[2][];
        actionBeatsList[1][0]    = new ActionBeat[4];
        actionBeatsList[1][0][0] = new ActionBeat(4, Action.Up);
        actionBeatsList[1][0][1] = new ActionBeat(4, Action.Down);
        actionBeatsList[1][0][2] = new ActionBeat(4, Action.Up);
        actionBeatsList[1][0][3] = new ActionBeat(4, Action.Attack);
        actionBeatsList[1][1]    = new ActionBeat[4];
        actionBeatsList[1][1][0] = new ActionBeat(4, Action.Down);
        actionBeatsList[1][1][1] = new ActionBeat(4, Action.Up);
        actionBeatsList[1][1][2] = new ActionBeat(4, Action.Down);
        actionBeatsList[1][1][3] = new ActionBeat(4, Action.Attack);

        //2번째 몬스터 체력 2
        actionBeatsList[2]       = new ActionBeat[2][];
        actionBeatsList[2][0]    = new ActionBeat[5];
        actionBeatsList[2][0][0] = new ActionBeat(4, Action.Up);
        actionBeatsList[2][0][1] = new ActionBeat(4, Action.Down);
        actionBeatsList[2][0][2] = new ActionBeat(4, Action.Up);
        actionBeatsList[2][0][3] = new ActionBeat(2, Action.TwoSide);
        actionBeatsList[2][0][4] = new ActionBeat(2, Action.Attack);
        actionBeatsList[2][1]    = new ActionBeat[5];
        actionBeatsList[2][1][0] = new ActionBeat(4, Action.Down);
        actionBeatsList[2][1][1] = new ActionBeat(4, Action.Up);
        actionBeatsList[2][1][2] = new ActionBeat(4, Action.Down);
        actionBeatsList[2][1][3] = new ActionBeat(2, Action.TwoSide);
        actionBeatsList[2][1][4] = new ActionBeat(2, Action.Attack);

        //3번째 몬스터 체력 2
        actionBeatsList[3]       = new ActionBeat[2][];
        actionBeatsList[3][0]    = new ActionBeat[6];
        actionBeatsList[3][0][0] = new ActionBeat(2, Action.Up);
        actionBeatsList[3][0][1] = new ActionBeat(2, Action.Down);
        actionBeatsList[3][0][2] = new ActionBeat(2, Action.Up);
        actionBeatsList[3][0][3] = new ActionBeat(2, Action.Down);
        actionBeatsList[3][0][4] = new ActionBeat(4, Action.TwoSide);
        actionBeatsList[3][0][5] = new ActionBeat(4, Action.Attack);
        actionBeatsList[3][1]    = new ActionBeat[5];
        actionBeatsList[3][1][0] = new ActionBeat(4, Action.TwoSide);
        actionBeatsList[3][1][1] = new ActionBeat(4, Action.TwoSide);
        actionBeatsList[3][1][2] = new ActionBeat(2, Action.Down);
        actionBeatsList[3][1][3] = new ActionBeat(4, Action.Up);
        actionBeatsList[3][1][4] = new ActionBeat(2, Action.Attack);

        //4번째 몬스터 체력 4
        actionBeatsList[4]       = new ActionBeat[2][];
        actionBeatsList[4][0]    = new ActionBeat[6];
        actionBeatsList[4][0][0] = new ActionBeat(2, Action.Up);
        actionBeatsList[4][0][1] = new ActionBeat(2, Action.Up);
        actionBeatsList[4][0][2] = new ActionBeat(2, Action.Up);
        actionBeatsList[4][0][3] = new ActionBeat(4, Action.Up);
        actionBeatsList[4][0][4] = new ActionBeat(4, Action.TwoSide);
        actionBeatsList[4][0][5] = new ActionBeat(2, Action.Attack);
        actionBeatsList[4][1]    = new ActionBeat[6];
        actionBeatsList[4][1][0] = new ActionBeat(2, Action.None);
        actionBeatsList[4][1][1] = new ActionBeat(4, Action.TwoSide);
        actionBeatsList[4][1][2] = new ActionBeat(4, Action.TwoSide);
        actionBeatsList[4][1][3] = new ActionBeat(2, Action.Up);
        actionBeatsList[4][1][4] = new ActionBeat(2, Action.Down);
        actionBeatsList[4][1][5] = new ActionBeat(2, Action.Attack);

        //5번째 몬스터 체력 10
        actionBeatsList[5]        = new ActionBeat[1][];
        actionBeatsList[5][0]     = new ActionBeat[12];
        actionBeatsList[5][0][0]  = new ActionBeat(1, Action.Up);
        actionBeatsList[5][0][1]  = new ActionBeat(1, Action.Attack);
        actionBeatsList[5][0][2]  = new ActionBeat(1, Action.Down);
        actionBeatsList[5][0][3]  = new ActionBeat(1, Action.Attack);
        actionBeatsList[5][0][4]  = new ActionBeat(1, Action.Up);
        actionBeatsList[5][0][5]  = new ActionBeat(1, Action.Attack);
        actionBeatsList[5][0][6]  = new ActionBeat(1, Action.Down);
        actionBeatsList[5][0][7]  = new ActionBeat(1, Action.Attack);
        actionBeatsList[5][0][8]  = new ActionBeat(2, Action.Up);
        actionBeatsList[5][0][9]  = new ActionBeat(2, Action.TwoSide);
        actionBeatsList[5][0][10] = new ActionBeat(2, Action.Down);
        actionBeatsList[5][0][11] = new ActionBeat(2, Action.TwoSide);

        beatCount = 0;
    }