Beispiel #1
0
        public void SetUp(UnitsMap unitsMap, BoardController boardController, Point attackerPosition, int knockback, int damage)
        {
            DamageOnCollision bullet = this.GetComponent <DamageOnCollision>();

            bullet.Damage           = damage;
            bullet.UnitsMap         = unitsMap;
            bullet.BoardController  = boardController;
            bullet.AttackerPoint    = attackerPosition;
            bullet.Knockback        = knockback;
            bullet.DestroyComponent = true;
        }
Beispiel #2
0
        public void SetUp(BoardController boardController, UnitsMap unitsMap, int damage, int knockback, Point origin)
        {
            DamageOnCollision onCollision = this.GetComponent <DamageOnCollision>();

            Logcat.I($"HoloblastSplit damage {damage}, unitsMap {unitsMap}, knockback {knockback} attacker position {origin}");
            onCollision.BoardController = boardController;
            onCollision.UnitsMap        = unitsMap;
            onCollision.Damage          = damage;
            onCollision.Knockback       = knockback;
            onCollision.AttackerPoint   = origin;
        }
Beispiel #3
0
        public virtual void SetUp(UnitsMap map, BoardController boardController, Point attackerPosition, CardinalDirections[] blastSplit, int firstAttackDamage, int secondAttackDamage, int knockback)
        {
            this.unitsMap           = map;
            this.boardController    = boardController;
            this.blastSplit         = blastSplit;
            this.secondAttackDamage = secondAttackDamage;
            this.secondKnockback    = knockback;
            DamageOnCollision bullet = this.GetComponent <DamageOnCollision>();

            bullet.UnitsMap         = map;
            bullet.BoardController  = boardController;
            bullet.AttackerPoint    = attackerPosition;
            bullet.Knockback        = knockback;
            bullet.Damage           = firstAttackDamage;
            bullet.DestroyComponent = false;
        }