At the end of the course, we see the 2x methods getting added: RewardGold() and StealGold()
But one is placed before the SetActive() method.
And the other is set after the SetActive() method.
Is there any reason for this order?
Do they work the same way, no matter the order?
Is this
IEnumerator FollowPath()
{
[...]
enemy.StealGold();
gameObject.SetActive(false);
}
the same as this?
IEnumerator FollowPath()
{
[...]
gameObject.SetActive(false);
enemy.StealGold();
}