public void SetLookAtTarget(IMonoBehaviourAdaptor target)
 {
     thisLookAtTarget = target;
     if (thisProcess != null && thisProcess.IsRunning())
     {
         thisProcess.UpdateLookAtTarget(thisLookAtTarget);
     }
 }
Пример #2
0
 public void SetFollowTarget(IMonoBehaviourAdaptor target)
 {
     thisFollowTarget = target;
     if (thisProcess != null && thisProcess.IsRunning())
     {
         thisProcess.UpdateFollowTarget(target);
     }
 }
 public ConstArg(
     float eventPoint,
     IMonoBehaviourAdaptor targetMBAdaptor,
     float smoothCoefficient
     )
 {
     thisEventPoint        = eventPoint;
     thisLookAtTarget      = targetMBAdaptor;
     thisSmoothCoefficient = smoothCoefficient;
 }
Пример #4
0
 public ConstArg(
     ISmoothFollowerAdaptor adaptor,
     float smoothCoefficient,
     IMonoBehaviourAdaptor followTarget,
     int processOrder
     ) : base(
         adaptor
         )
 {
     thisSmoothCoefficient = smoothCoefficient;
     thisFollowTarget      = followTarget;
     thisProcessOrder      = processOrder;
 }
        public void SetParent(ISceneObject sceneObj)
        {
            Transform parentTrans;

            if (sceneObj != null)
            {
                IMonoBehaviourAdaptor parentAdaptor = sceneObj.GetAdaptor();
                parentTrans = parentAdaptor.GetTransform();
            }
            else
            {
                parentTrans = null;
            }
            thisAdaptor.SetParent(parentTrans);
        }
 public ISmoothLookProcess CreateSmoothLookProcess(
     ISmoothLooker smoothLooker,
     IMonoBehaviourAdaptor lookAtTarget,
     float smoothCoefficient,
     int processOrder
     )
 {
     SmoothLookProcess.IConstArg arg = new SmoothLookProcess.ConstArg(
         thisProcessManager,
         lookAtTarget,
         smoothLooker,
         smoothCoefficient,
         processOrder
         );
     return(new SmoothLookProcess(arg));
 }
            public ConstArg(
                IProcessManager processManager,

                IMonoBehaviourAdaptor target,
                ISmoothLooker looker,
                float smoothCoefficient,
                int processOrder
                ) : base(
                    processManager
                    )
            {
                thisTarget            = target;
                thisSmoothLooker      = looker;
                thisSmoothCoefficient = smoothCoefficient;
                thisProcessOrder      = processOrder;
            }
 public ConstArg(
     IMonoBehaviourAdaptor adaptor
     )
 {
     thisAdaptor = adaptor;
 }
 public void UpdateLookAtTarget(IMonoBehaviourAdaptor target)
 {
     thisTarget = target;
 }
Пример #10
0
        public void SetTargetSceneObject(ISceneObject obj)
        {
            IMonoBehaviourAdaptor adaptor = obj.GetAdaptor();

            thisTypedAdaptor.SetTargetTransform(adaptor.GetTransform());
        }
Пример #11
0
 public void AddAdaptor(IMonoBehaviourAdaptor adaptor)
 {
     thisMonoBehaviourAdaptors.Add(adaptor);
 }
 public void UpdateFollowTarget(IMonoBehaviourAdaptor newTarget)
 {
     thisTarget = newTarget;
 }