Beispiel #1
0
 void Awake()
 {
     movableComponent    = GetComponent <MovablePiece>();
     colorComponent      = GetComponent <ColorPiece>();
     selectableComponent = GetComponent <SelectablePiece>();
     clearableComponent  = GetComponent <ClearablePiece>();
 }
Beispiel #2
0
 void Awake()
 {
     movableComponent    = GetComponent <MovablePiece> ();
     colorComponent      = GetComponent <ColorPiece> ();
     clearableComponent  = GetComponent <ClearablePiece> ();
     generativeComponent = GetComponent <GenerativePiece>();
     scaleableComponent  = GetComponent <ScaleablePiece>();
 }
Beispiel #3
0
 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>();
 }
Beispiel #4
0
 private void Awake()
 {
     movableComponent   = GetComponent <MovePiece>();
     colorComponent     = GetComponent <ColorPeice>();
     clearableComponent = GetComponent <ClearablePiece>();
     champComponent     = GetComponent <ChampPiece>();
     bombaComponent     = GetComponent <Bomba>();
     targetComponent    = GetComponent <TargetPiece>();
 }
Beispiel #5
0
 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;
     }
 }
Beispiel #6
0
 void Awake()
 {
     movableComponent   = GetComponent <MovablePiece>();
     characterComponent = GetComponent <CharacterPiece>();
     clearableComponent = GetComponent <ClearablePiece>();
 }
Beispiel #7
0
 void Awake()
 {
     movable   = GetComponent <MovablePiece>();
     color     = GetComponent <ColorPiece>();
     clearable = GetComponent <ClearablePiece>();
 }
Beispiel #8
0
 void Awake()
 {
     moveableComponent  = GetComponent <MoveablePiece> ();
     letterComponent    = GetComponent <LetterPiece> ();
     clearableComponent = GetComponent <ClearablePiece> ();
 }
Beispiel #9
0
 void Awake()
 {
     movableComponent   = GetComponent <Movablepiece>();//通过查看该属性是否为空来判断当前物体是否能移动
     colorComponent     = GetComponent <ColorPiece>();
     clearableComponent = GetComponent <ClearablePiece>();
 }
Beispiel #10
0
 private void Awake()
 {
     movableComponent   = GetComponent <MovePiece>();
     colorComponent     = GetComponent <ColorPeice>();
     clearableComponent = GetComponent <ClearablePiece>();
 }
Beispiel #11
0
 void Awake()
 {
     MovableComponent   = GetComponent <MovablePiece>();
     ColorComponent     = GetComponent <ColorPiece>();
     ClearableComponent = GetComponent <ClearablePiece>();
 }
Beispiel #12
0
 void Awake()
 {
     movableComponent   = GetComponent <MovablePiece>();
     colourComponent    = GetComponent <ColourPiece>();
     clearableComponent = GetComponent <ClearablePiece>();
 }