public virtual void InitComponent(AbstractBoardRenderer _boardRenderer) {
//		Board = owner;
		BoardPosition = new BoardCoord(-1, -1);
		BoardRenderer = _boardRenderer;
		
		// Parent this board piece to the owner's transform.
		cachedTransform.parent = BoardRenderer.cachedTransform;
	}
    public virtual void InitComponent(AbstractBoardRenderer _boardRenderer)
    {
//		Board = owner;
        BoardPosition = new BoardCoord(-1, -1);
        BoardRenderer = _boardRenderer;

        // Parent this board piece to the owner's transform.
        cachedTransform.parent = BoardRenderer.cachedTransform;
    }
Ejemplo n.º 3
0
	public override void InitComponent (AbstractBoardRenderer boardRenderer) {
		base.InitComponent (boardRenderer);
		
		if(OnLayeredBoardPieceInit != null) {
			OnLayeredBoardPieceInit(this);
		}
		
		frostTextureIndex = numLayers-1;

		backModel.renderer.material = materialArray[frostTextureIndex];
	
		OnTileDestroyed += OnTileDestroyedAction;
	}
    public override void InitComponent(AbstractBoardRenderer boardRenderer)
    {
        base.InitComponent(boardRenderer);

        if (OnLayeredBoardPieceInit != null)
        {
            OnLayeredBoardPieceInit(this);
        }

        frostTextureIndex = numLayers - 1;

        backModel.renderer.material = materialArray[frostTextureIndex];

        OnTileDestroyed += OnTileDestroyedAction;
    }
	protected void OnBoardFinishedSetupEvent(AbstractBoardRenderer sender)
	{
		isEnabled = true;
	}
Ejemplo n.º 6
0
 protected void OnBoardFinishedSetupEvent(AbstractBoardRenderer sender)
 {
     isEnabled = true;
 }