Beispiel #1
0
    private void Awake()
    {
        graphics.Setup(this);
        mover.Setup(this);
        health.Setup(this);
        attacker.Setup(this);
        behaviourController.Setup(this);

        graphics.OnTriggerAttackDamage.AddListener(OnGraphicsTriggeredAttackDamage);
        graphics.OnHided.AddListener(OnHided);

        health.OnDamageReceived.AddListener(OnReceivedDamage);
        health.OnDeath.AddListener(OnDeath);
    }