Esempio n. 1
0
 private void ToStatic(LocomoteStaticParams param)
 {
     LayerWeightTarget        = 1;
     TurnToTransform          = param.TurnToObject;
     LocomType                = PredefinedLocomType.StaticWithKeys;
     MoveToTransformWithAgent = null;
     StopLocomotionWithAgent();
     rb.isKinematic = false;
     SetLocomotionStyle(param.LocomStyleIndex);
 }
Esempio n. 2
0
        public void OverrideLocomoteStatic(LocomoteStaticParams param, short priority, string id)
        {
            if (param.TurnToObject == null)
            {
                Debug.Log("Turn to object is null, turned movement won't work...");
                return;
            }

            LocomTypeDict.Override(id, priority, param);
            if (LocomTypeDict.LastId == id)
            {
                ToStatic(param);
            }
        }