Exemple #1
0
    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();
    }
Exemple #2
0
 // Start is called before the first frame update
 void Start()
 {
     Animator = GetComponent <EntityAnimationController>();
 }