Exemplo n.º 1
0
        public static FightContext Create(int fightId)
        {
            FightContext fightContext = ScriptableObject.CreateInstance <FightContext>();

            fightContext.fightId = fightId;
            return(fightContext);
        }
        public override Playable CreatePlayable(PlayableGraph graph, GameObject owner)
        {
            //IL_0000: Unknown result type (might be due to invalid IL or missing references)
            //IL_0027: Unknown result type (might be due to invalid IL or missing references)
            //IL_0039: Unknown result type (might be due to invalid IL or missing references)
            //IL_003c: Unknown result type (might be due to invalid IL or missing references)
            //IL_0041: Unknown result type (might be due to invalid IL or missing references)
            FightContext fightContext = TimelineContextUtility.GetFightContext(graph);

            if (null != fightContext)
            {
                FightStatus local = FightStatus.local;
                if (local != null && fightContext.fightId != local.fightId)
                {
                    return(Playable.get_Null());
                }
            }
            CameraShakePlayableBehaviour cameraShakePlayableBehaviour = new CameraShakePlayableBehaviour(m_curve);

            return(ScriptPlayable <CameraShakePlayableBehaviour> .op_Implicit(ScriptPlayable <CameraShakePlayableBehaviour> .Create(graph, cameraShakePlayableBehaviour, 0)));
        }
        public static void SetFightContext([NotNull] PlayableDirector playableDirector, FightContext fightContext)
        {
            //IL_000d: Unknown result type (might be due to invalid IL or missing references)
            PropertyName val = default(PropertyName);

            val._002Ector("fight");
            playableDirector.SetReferenceValue(val, fightContext);
        }