void Awake() { movableComponent = GetComponent <MovablePiece>(); colorComponent = GetComponent <ColorPiece>(); selectableComponent = GetComponent <SelectablePiece>(); clearableComponent = GetComponent <ClearablePiece>(); }
void Awake() { movableComponent = GetComponent <MovablePiece> (); colorComponent = GetComponent <ColorPiece> (); clearableComponent = GetComponent <ClearablePiece> (); generativeComponent = GetComponent <GenerativePiece>(); scaleableComponent = GetComponent <ScaleablePiece>(); }
private void Awake() { //Getting and storing the Components at the Start of the game (Caching) //If this gameobject doesn't has a component, the variable will store null (For E.g an Empty Game Piece will not have a TypePiece Component. Hence, the value would be null) movablePieceScript = GetComponent <MovablePiece>(); dailyActivityPieceScript = GetComponent <DailyActivityPiece>(); clearablePieceScript = GetComponent <ClearablePiece>(); }
private void Awake() { movableComponent = GetComponent <MovePiece>(); colorComponent = GetComponent <ColorPeice>(); clearableComponent = GetComponent <ClearablePiece>(); champComponent = GetComponent <ChampPiece>(); bombaComponent = GetComponent <Bomba>(); targetComponent = GetComponent <TargetPiece>(); }
private void Awake() { //若有移动脚本说明可以移动 moveableComponent = this.GetComponent <MoveablePiece>(); if (moveableComponent != null) { isMoveable = true; } //有颜色组件说明可以变换颜色 colorComponent = this.GetComponent <ColorPiece>(); if (colorComponent != null) { isColor = true; } //有消除组件说明可以消除 clearComponent = GetComponent <ClearablePiece>(); if (clearComponent != null) { isClear = true; } }
void Awake() { movableComponent = GetComponent <MovablePiece>(); characterComponent = GetComponent <CharacterPiece>(); clearableComponent = GetComponent <ClearablePiece>(); }
void Awake() { movable = GetComponent <MovablePiece>(); color = GetComponent <ColorPiece>(); clearable = GetComponent <ClearablePiece>(); }
void Awake() { moveableComponent = GetComponent <MoveablePiece> (); letterComponent = GetComponent <LetterPiece> (); clearableComponent = GetComponent <ClearablePiece> (); }
void Awake() { movableComponent = GetComponent <Movablepiece>();//通过查看该属性是否为空来判断当前物体是否能移动 colorComponent = GetComponent <ColorPiece>(); clearableComponent = GetComponent <ClearablePiece>(); }
private void Awake() { movableComponent = GetComponent <MovePiece>(); colorComponent = GetComponent <ColorPeice>(); clearableComponent = GetComponent <ClearablePiece>(); }
void Awake() { MovableComponent = GetComponent <MovablePiece>(); ColorComponent = GetComponent <ColorPiece>(); ClearableComponent = GetComponent <ClearablePiece>(); }
void Awake() { movableComponent = GetComponent <MovablePiece>(); colourComponent = GetComponent <ColourPiece>(); clearableComponent = GetComponent <ClearablePiece>(); }