Пример #1
0
        public void RemoveCharacter()
        {
            foreach (var mansfeld in FindObjectsOfType <MansfeldCharacter>())
            {
                Destroy(mansfeld.gameObject);
            }

            MansfeldCharacter = null;
        }
Пример #2
0
 public void SpawnMansfeld(Vector3 offset, Vector3 rotation)
 {
     MansfeldCharacter = Instantiate(mansfeldCharacterPrefab, _trackedPosition + offset, Quaternion.Euler(rotation));
     MansfeldCharacter.Initialize();
 }
Пример #3
0
 protected BaseAnimationMechanic(DynamicAnimation dynamicAnimation)
 {
     DynamicAnimation  = dynamicAnimation;
     AnimationSequence = DynamicAnimation.GetCurrentAnimationSequence();
     MansfeldCharacter = DynamicAnimation.MansfeldCharacter;
 }