コード例 #1
0
ファイル: WMActor.cs プロジェクト: ArtReeX/memoria
    public AnimationClip GetAnimationClip(WMActorStateDebug state)
    {
        WMAnimationBank instance = Singleton <WMAnimationBank> .Instance;

        if (this.originalActor.index == 1)
        {
            if (state == WMActorStateDebug.Idle)
            {
                return(instance.ZidaneIdleClip);
            }
            if (state == WMActorStateDebug.Running)
            {
                return(instance.ZidaneRunClip);
            }
        }
        else if (this.originalActor.index == 2)
        {
            if (state == WMActorStateDebug.Idle)
            {
                return(instance.DaggerIdleClip);
            }
            if (state == WMActorStateDebug.Running)
            {
                return(instance.DaggerRunClip);
            }
        }
        else if (this.originalActor.index >= 3 && this.originalActor.index <= 7)
        {
            if ((Int32)ff9.w_moveCHRControl_No == 6)
            {
                if (state == WMActorStateDebug.Idle)
                {
                    return(instance.ChocoboFlyClip);
                }
                if (state == WMActorStateDebug.Running)
                {
                    return(instance.ChocoboFlyClip);
                }
            }
            else
            {
                if (state == WMActorStateDebug.Idle)
                {
                    return(instance.ChocoboIdleClip);
                }
                if (state == WMActorStateDebug.Running)
                {
                    return(instance.ChocoboRunClip);
                }
            }
        }
        else if (this.originalActor.index == 8)
        {
            if (state == WMActorStateDebug.Idle)
            {
                return(instance.BluenalusisuIdleClip);
            }
            if (state == WMActorStateDebug.Running)
            {
                return(instance.BluenalusisuIdleClip);
            }
        }
        else if (this.originalActor.index == 9)
        {
            if (state == WMActorStateDebug.Idle)
            {
                return(instance.HirudagarudeIdleClip);
            }
            if (state == WMActorStateDebug.Running)
            {
                return(instance.HirudagarudeIdleClip);
            }
        }
        else if (this.originalActor.index == 10)
        {
            if (state == WMActorStateDebug.Idle)
            {
                return(instance.InvincibleIdleClip);
            }
            if (state == WMActorStateDebug.Running)
            {
                return(instance.InvincibleIdleClip);
            }
        }
        global::Debug.Log("No animation clip found!");
        return((AnimationClip)null);
    }
コード例 #2
0
ファイル: WMActor.cs プロジェクト: ArtReeX/memoria
 public String GetAnimationClipName(WMActorStateDebug state)
 {
     return(this.GetAnimationClip(state).name);
 }