public void RemoveCharacter() { foreach (var mansfeld in FindObjectsOfType <MansfeldCharacter>()) { Destroy(mansfeld.gameObject); } MansfeldCharacter = null; }
public void SpawnMansfeld(Vector3 offset, Vector3 rotation) { MansfeldCharacter = Instantiate(mansfeldCharacterPrefab, _trackedPosition + offset, Quaternion.Euler(rotation)); MansfeldCharacter.Initialize(); }
protected BaseAnimationMechanic(DynamicAnimation dynamicAnimation) { DynamicAnimation = dynamicAnimation; AnimationSequence = DynamicAnimation.GetCurrentAnimationSequence(); MansfeldCharacter = DynamicAnimation.MansfeldCharacter; }