Example #1
0
    public void Awake()
    {
        // Setup coroutine service
        CoroutineService coroutineService = new CoroutineService();

        _coroutineServiceRunner.SetCoroutineService(coroutineService);

        // Setup DOT component
        _damageOverTime.Setup(coroutineService);

        // Start dealing damage
        _damageOverTime.DoDamage(_player, 20, 5);
    }