public override void SetupBlock(BlockInfo.BlockTypes type, BlockInfo.BlockState state) { base.SetupBlock(type, state); if (state == BlockInfo.BlockState.UP) { this.isReversed = true; } }
public override void SetupBlock(BlockInfo.BlockTypes type, BlockInfo.BlockState state) { base.SetupBlock(type, state); #if UNITY_EDITOR this.SetMiscMaterial(); #endif this.blockMaterials[1] = this.switchDownMaterial; this.blockRenderer.materials = this.blockMaterials; }
public virtual void SetupBlock() { this._blockType = BlockInfo.BlockTypes.NONE; this._blockState = BlockInfo.BlockState.NONE; this._firstDirection = BlockInfo.BlockDirection.NONE; this._secondDirection = BlockInfo.BlockDirection.NONE; this.SetTileMaterial(); }
public virtual void SetupBlock(BlockInfo.BlockTypes type, int initCounter) { this._blockType = type; this._blockState = BlockInfo.BlockState.NONE; this._firstDirection = BlockInfo.BlockDirection.NONE; this._secondDirection = BlockInfo.BlockDirection.NONE; this.SetTileMaterial(); }
public override void SetupBlock(BlockInfo.BlockTypes type, BlockInfo.BlockState state, int initCounter) { base.SetupBlock(type, state, initCounter); this.stunCounter = initCounter; #if UNITY_EDITOR this.SetMiscMaterial(); #endif this.blockMaterials[1] = stunDownMaterial; this.blockRenderer.materials = this.blockMaterials; }
public virtual void SetupBlock(BlockInfo.BlockTypes type, BlockInfo.BlockState state) { this._blockType = type; this._blockState = state; this._previousState = state; this._firstDirection = BlockInfo.BlockDirection.NONE; this._secondDirection = BlockInfo.BlockDirection.NONE; this.SetTileMaterial(); }
public virtual void SetupBlock(BlockInfo.BlockTypes type, BlockInfo.BlockDirection direction) { this._blockType = type; this._blockState = BlockInfo.BlockState.NONE; this._firstDirection = direction; this._secondDirection = BlockInfo.BlockDirection.NONE; this._blockDirections.Add(direction); this.firstDirectionValue = (int)direction; this.SetTileMaterial(); }
public virtual void SetupBlock(BlockInfo.BlockTypes type, BlockInfo.BlockDirection firstDirection, BlockInfo.BlockDirection secondDirection, BlockInfo.BlockState state) { this._blockType = type; this._blockState = state; this._previousState = state; this._firstDirection = firstDirection; this._secondDirection = secondDirection; this._blockDirections.Add(firstDirection); this._blockDirections.Add(secondDirection); this.firstDirectionValue = (int)firstDirection; this.secondDirectionValue = (int)secondDirection; this.SetTileMaterial(); }
public virtual void Init() { if(this._blockState == BlockInfo.BlockState.UP) { this.transform.position = new Vector3(this.transform.position.x, 1.0f, this.transform.position.z); this.isUp = true; this._blockState = BlockInfo.BlockState.NONE; this._previousState = BlockInfo.BlockState.UP; this._firstState = BlockInfo.BlockState.UP; this.blockMaterials[0] = this.tileUpMaterial; } else { this.transform.position = new Vector3(this.transform.position.x, 0.0f, this.transform.position.z); this.isUp = false; this._blockState = BlockInfo.BlockState.NONE; this._previousState = BlockInfo.BlockState.DOWN; this._firstState = BlockInfo.BlockState.DOWN; this.blockMaterials[0] = this.tileDownMaterial; } }
public override void SetupBlock(BlockInfo.BlockTypes type, BlockInfo.BlockState state, int initCounter) { base.SetupBlock(type, state, initCounter); //this._maxCount = initCounter; this.previousBreakCount = initCounter; this.breakCount = initCounter; #if UNITY_EDITOR this.SetMiscMaterial(); if (this.BlockState == BlockInfo.BlockState.UP) { this.blockMaterials[0] = this.tileUpMaterial; } else { this.blockMaterials[0] = this.tileDownMaterial; } this.blockRenderer.sharedMaterials = this.blockMaterials; #endif }
public virtual void Init() { if (this._blockState == BlockInfo.BlockState.UP) { this.transform.position = new Vector3(this.transform.position.x, 1.0f, this.transform.position.z); this.isUp = true; this._blockState = BlockInfo.BlockState.NONE; this._previousState = BlockInfo.BlockState.UP; this._firstState = BlockInfo.BlockState.UP; this.blockMaterials[0] = this.tileUpMaterial; } else { this.transform.position = new Vector3(this.transform.position.x, 0.0f, this.transform.position.z); this.isUp = false; this._blockState = BlockInfo.BlockState.NONE; this._previousState = BlockInfo.BlockState.DOWN; this._firstState = BlockInfo.BlockState.DOWN; this.blockMaterials[0] = this.tileDownMaterial; } }
public override void SetupBlock(BlockInfo.BlockTypes type, BlockInfo.BlockState state, int initCounter) { base.SetupBlock(type, state, initCounter); this.currentCounter = initCounter; this.previousCounter = initCounter; this.maxCounter = initCounter; if (state == BlockInfo.BlockState.UP) { this.blockMaterials[1] = this.numberMaterials[currentCounter]; this.blockRenderer.materials = this.blockMaterials; this.isReversed = true; } else { this.blockMaterials[1] = this.numberMaterials[currentCounter]; this.blockRenderer.materials = this.blockMaterials; this.isReversed = false; } }
public virtual void SetupBlock(BlockInfo.BlockTypes type, BlockInfo.BlockDirection firstDirection, BlockInfo.BlockDirection secondDirection, BlockInfo.BlockState state) { this._blockType = type; this._blockState = state; this._previousState = state; this._firstDirection = firstDirection; this._secondDirection = secondDirection; this._blockDirections.Add(firstDirection); this._blockDirections.Add(secondDirection); this.firstDirectionValue = (int)firstDirection; this.secondDirectionValue = (int)secondDirection; this.SetTileMaterial(); }
public virtual void SetupBlock(BlockInfo.BlockTypes type, BlockInfo.BlockDirection direction) { this._blockType = type; this._blockState = BlockInfo.BlockState.NONE; this._firstDirection = direction; this._secondDirection = BlockInfo.BlockDirection.NONE; this._blockDirections.Add(direction); this.firstDirectionValue = (int)direction; this.SetTileMaterial(); }
public override void SetupBlock(BlockInfo.BlockTypes type, BlockInfo.BlockDirection firstDirection, BlockInfo.BlockDirection secondDirection, BlockInfo.BlockState state) { base.SetupBlock(type, firstDirection, secondDirection, state); if (state == BlockInfo.BlockState.UP) { this.isUp = true; #if UNITY_EDITOR this.SetMiscMaterial(); #endif this.blockRenderer.sharedMaterials = this.blockMaterials; } else { #if UNITY_EDITOR this.SetMiscMaterial(); #endif this.blockRenderer.sharedMaterials = this.blockMaterials; } }
public override void SetupBlock(BlockInfo.BlockTypes type, BlockInfo.BlockDirection direction, BlockInfo.BlockState state) { base.SetupBlock(type, direction, state); this.warpDirection = (PlayerInfo.MovementDirection)((int)direction); #if UNITY_EDITOR this.SetMiscMaterial(); #endif this.blockMaterials[1] = this.warpDownMaterial; this.blockRenderer.sharedMaterials = this.blockMaterials; }
public virtual void SetupBlock(BlockInfo.BlockTypes type) { this._blockType = type; this._blockState = BlockInfo.BlockState.NONE; this._firstDirection = BlockInfo.BlockDirection.NONE; this._secondDirection = BlockInfo.BlockDirection.NONE; this.SetTileMaterial(); }
public override void SetupBlock(BlockInfo.BlockTypes type, BlockInfo.BlockState state) { base.SetupBlock(type, state); }
public virtual void SetupBlock(BlockInfo.BlockTypes type, BlockInfo.BlockState state, int initCounter) { this._blockType = type; this._blockState = state; this._previousState = state; this._firstDirection = BlockInfo.BlockDirection.NONE; this._secondDirection = BlockInfo.BlockDirection.NONE; this.SetTileMaterial(); }