Exemple #1
0
        public override void Enter()
        {
            var spellPainter = new SpellPainter(
                "MavkaMeleeProjectile",
                "LineRenderersPainter",
                _castPoint.position, GameSettings.Instance.MavkaSingleProjectileCastTime, 0f);

            spellPainter.Complete += CompletePaintSpell;
            spellPainter.StartDraw();
        }
        private void CreateSpellPainter(int spawnPointIndex, float afterDrawDelay)
        {
            var spellPainter = new SpellPainter(
                "MavkaSeveralProjectiles",
                "LineRenderersPainter",
                _spawnPoints[spawnPointIndex].position, GameSettings.Instance.SeveralProjectilesCastTime
                , afterDrawDelay);

            spellPainter.Complete += () => CompletePaintSpell(spawnPointIndex);
            spellPainter.StartDraw();
        }