コード例 #1
0
ファイル: EntityEvents.cs プロジェクト: Wiciaki/SparkTech
        static EntityEvents()
        {
            var fragment = Platform.CoreFragment?.GetEntityEventsFragment() ?? throw Platform.FragmentException();

            fragment.Notify                      = args => OnNotify.SafeInvoke(args);
            fragment.PlayAnimation               = args => OnPlayAnimation.SafeInvoke(args);
            fragment.ProcessSpellCast            = args => OnProcessSpellCast.SafeInvoke(args);
            fragment.DoCast                      = args => OnDoCast.SafeInvoke(args);
            fragment.NewPath                     = args => OnNewPath.SafeInvoke(args);
            fragment.IssueOrder                  = args => OnIssueOrder.SafeInvoke(args);
            fragment.Teleport                    = args => OnTeleport.SafeInvoke(args);
            fragment.Aggro                       = args => OnAggro.SafeInvoke(args);
            fragment.BuffAdd                     = args => OnBuffAdd.SafeInvoke(args);
            fragment.BuffRemove                  = args => OnBuffRemove.SafeInvoke(args);
            fragment.LevelUp                     = args => OnLevelUp.SafeInvoke(args);
            fragment.SpellbookCastSpell          = args => OnSpellbookCastSpell.SafeInvoke(args);
            fragment.SpellbookStopCast           = args => OnSpellbookStopCast.SafeInvoke(args);
            fragment.SpellbookUpdateChargedSpell = args => OnSpellbookUpdateChargedSpell.SafeInvoke(args);
            fragment.OnIntegerPropertyChange     = args => OnIntegerPropertyChange.SafeInvoke(args);
            fragment.OnFloatPropertyChange       = args => OnFloatPropertyChange.SafeInvoke(args);
        }
コード例 #2
0
 public override void PlayAnimation()
 {
     triggerOnce = true;
     OnPlayAnimation.Invoke();
     tpInput.cc.GetComponent <PhotonView>().RPC("CrossFadeInFixedTime", RpcTarget.All, animationClip, 0.1f);
 }