private void Awake() { WeaponPoints = transform.parent.GetComponent <WeaponPoints>(); SpriteRenderer = GetComponent <SpriteRenderer>(); SpriteRenderer.flipX = false; SpriteRenderer.flipY = false; EntityAnimationController = transform.parent.GetComponent <EntityAnimationController>(); if (EntityAnimationController) { EntityAnimationController.DirectionChanged += EntityDirectionChanged; } Animator = GetComponent <Animator>(); InnerAwake(); }
// Start is called before the first frame update void Start() { Animator = GetComponent <EntityAnimationController>(); }