Beispiel #1
0
    private void TestSkill()
    {
        SA_PlayEffect sa1 = new SA_PlayEffect();

        sa1.totalTime = 0;
        sa1.startTime = 0.5f;
        SA_Camera sa2 = new SA_Camera();

        sa2.needUpdate = true;
        sa2.totalTime  = 3;
        sa2.startTime  = 0f;
        SA_PlayEffect sa3 = new SA_PlayEffect();

        sa3.totalTime = 0;
        sa3.startTime = 2;
        SA_Camera sa4 = new SA_Camera();

        sa4.needUpdate = true;
        sa4.totalTime  = 2f;
        sa4.startTime  = 3f;

        SkillConfig skillConfig = new SkillConfig();

        skillConfig.totalTime = 5f;
        skillConfig.AddAction(sa1);
        skillConfig.AddAction(sa2);
        skillConfig.AddAction(sa3);
        skillConfig.AddAction(sa4);

        SkillEntity skillEntity = new SkillEntity();

        skillEntity.config = skillConfig;

        SkillManager.inst.AddSkill(skillEntity);
        skillEntity.Start();
    }