コード例 #1
0
 public void Run()
 {
     if (animator != null && animEventData != null && listener != null)
     {
         processer = new AnimEventProcessor(animEventData, animator, listener);
     }
 }
コード例 #2
0
 private void Awake()
 {
     //IL_0002: Unknown result type (might be due to invalid IL or missing references)
     //IL_0007: Expected O, but got Unknown
     //IL_001e: Unknown result type (might be due to invalid IL or missing references)
     _transform = this.get_transform();
     parameter  = MonoBehaviourSingleton <InGameSettingsManager> .I.fieldDrop;
     animator   = this.get_gameObject().GetComponentInChildren <Animator>();
     if (startAnimHash == -1)
     {
         startAnimHash = Animator.StringToHash("Base Layer.Pop");
     }
     if (endAnimHash == -1)
     {
         endAnimHash = Animator.StringToHash("Base Layer.Idle");
     }
     if (openAnimHash == -1)
     {
         openAnimHash = Animator.StringToHash("Base Layer.Open");
     }
     if (parameter.animEventData != null && animator != null)
     {
         animEventProcessor = new AnimEventProcessor(parameter.animEventData, animator, this);
     }
 }
コード例 #3
0
    }    //IL_0001: Unknown result type (might be due to invalid IL or missing references)

    //IL_0006: Unknown result type (might be due to invalid IL or missing references)


    public void Init(EnemyLoader _loader, Camera render_camrea, bool is_field_quest = false)
    {
        //IL_0038: Unknown result type (might be due to invalid IL or missing references)
        //IL_0056: Unknown result type (might be due to invalid IL or missing references)
        //IL_0088: Unknown result type (might be due to invalid IL or missing references)
        loader       = _loader;
        renderCamera = render_camrea;
        isFieldQuest = is_field_quest;
        animEvent    = new AnimEventProcessor(_loader.animEventData, _loader.animator, this);
        EnemyAnimCtrlProxy enemyAnimCtrlProxy = loader.body.get_gameObject().AddComponent <EnemyAnimCtrlProxy>();

        enemyAnimCtrlProxy.enemyAnimCtrl = this;
        if (isFieldQuest)
        {
            EnemyParam componentInChildren = this.get_gameObject().GetComponentInChildren <EnemyParam>();
            if (componentInChildren != null)
            {
                if (componentInChildren.stampInfos != null && componentInChildren.stampInfos.Length > 0)
                {
                    stepCtrl = this.get_gameObject().AddComponent <CharacterStampCtrl>();
                    stepCtrl.Init(componentInChildren.stampInfos, null, true);
                    stepCtrl.stampDistance = 999f;
                    stepCtrl.effectLayer   = 18;
                }
                Object.DestroyImmediate(componentInChildren);
                componentInChildren = null;
            }
        }
    }