Exemplo n.º 1
0
        protected override void LoadMatchTargetInfo(string stateName)
        {
            int hash = Animator.StringToHash(stateName);
            Dictionary <int, List <AnimeMoveInfo> > dictionary;
            List <AnimeMoveInfo> animeMoveInfoList;

            if (!Singleton <Resources> .Instance.Animation.PlayerMoveInfoTable.TryGetValue((int)this.Actor.ChaControl.sex, out dictionary) || !dictionary.TryGetValue(hash, out animeMoveInfoList))
            {
                return;
            }
            foreach (AnimeMoveInfo animeMoveInfo in animeMoveInfoList)
            {
                GameObject loop = ((Component)this.Actor.CurrentPoint).get_transform().FindLoop(animeMoveInfo.movePoint);
                ProceduralTargetParameter proceduralTargetParameter = new ProceduralTargetParameter()
                {
                    Start = animeMoveInfo.start,
                    End   = animeMoveInfo.end
                };
                if (Object.op_Inequality((Object)loop, (Object)null))
                {
                    proceduralTargetParameter.Target = loop.get_transform();
                }
                this.Targets.Add(proceduralTargetParameter);
            }
        }
        protected override void LoadMatchTargetInfo(string _stateName)
        {
            List <AnimeMoveInfo> animeMoveInfoList;

            if (!Singleton <Resources> .Instance.Animation.MerchantMoveInfoTable.TryGetValue(Animator.StringToHash(_stateName), out animeMoveInfoList))
            {
                return;
            }
            foreach (AnimeMoveInfo animeMoveInfo in animeMoveInfoList)
            {
                GameObject loop = ((Component)this.Actor.CurrentPoint).get_transform().FindLoop(animeMoveInfo.movePoint);
                ProceduralTargetParameter proceduralTargetParameter = new ProceduralTargetParameter()
                {
                    Start = animeMoveInfo.start,
                    End   = animeMoveInfo.end
                };
                if (Object.op_Inequality((Object)loop, (Object)null))
                {
                    proceduralTargetParameter.Target = loop.get_transform();
                }
                this.Targets.Add(proceduralTargetParameter);
            }
        }