Пример #1
0
    public virtual void init(Board B, int xPos, int yPos, int xDirection, int yDirection)
    {
        base.init(B, xPos, yPos);
        moveDirX = xDirection;
        moveDirY = yDirection;
        board.setHasEnemy(x, y, true);
        markedForDeath = false;


        enemyModel = gameObject.GetComponentInChildren <EnemyModel>();
        enemyModel.init(this.transform, xDirection, yDirection);
        enemyModel.setColor(CustomColors.TraversalEnemy);
    }