Esempio n. 1
0
 protected void OnEnteriTween(FsmOwnerDefault anOwner)
 {
     GameObject go = Fsm.GetOwnerDefaultTarget(anOwner);
     itweenEvents = (iTweenFSMEvents)go.AddComponent("iTweenFSMEvents");
     itweenEvents.itweenFSMAction = this;
     iTweenFSMEvents.itweenIDCount++;
     itweenID = iTweenFSMEvents.itweenIDCount;
     itweenEvents.itweenID = iTweenFSMEvents.itweenIDCount;
     itweenEvents.donotfinish = loopDontFinish.IsNone ? false : loopDontFinish.Value;
 }
Esempio n. 2
0
        protected void OnEnteriTween(FsmOwnerDefault anOwner)
        {
            GameObject go = Fsm.GetOwnerDefaultTarget(anOwner);

            itweenEvents = (iTweenFSMEvents)go.AddComponent("iTweenFSMEvents");
            itweenEvents.itweenFSMAction = this;
            iTweenFSMEvents.itweenIDCount++;
            itweenID = iTweenFSMEvents.itweenIDCount;
            itweenEvents.itweenID    = iTweenFSMEvents.itweenIDCount;
            itweenEvents.donotfinish = loopDontFinish.IsNone ? false : loopDontFinish.Value;
        }
Esempio n. 3
0
        protected void OnEnteriTween(FsmOwnerDefault anOwner)
        {
            GameObject ownerDefaultTarget = base.Fsm.GetOwnerDefaultTarget(anOwner);

            if (!(ownerDefaultTarget == null))
            {
                itweenEvents = ownerDefaultTarget.AddComponent <iTweenFSMEvents>();
                itweenEvents.itweenFSMAction = this;
                iTweenFSMEvents.itweenIDCount++;
                itweenID = iTweenFSMEvents.itweenIDCount;
                itweenEvents.itweenID    = iTweenFSMEvents.itweenIDCount;
                itweenEvents.donotfinish = !loopDontFinish.IsNone && loopDontFinish.Value;
            }
        }