C# Class MinigamePexeso.Mover

Mover script. Addached to tiles. Ensures moving the tile up to the camera and back down.
Inheritance: UnityEngine.MonoBehaviour
Mostra file Open project: BrainProject/UnityTemp

Public Properties

Property Type Description
isLifted bool
isMoving bool
toRemove bool
upPosition UnityEngine.Vector3

Public Methods

Method Description
Move ( ) : void

Move tile.

MoveDown ( ) : void

Move tile down.

MoveUp ( ) : void

Move tile up.

Start ( ) : void

Define down and up position.

Update ( ) : void

Private Methods

Method Description
SwitchTargets ( ) : void

Switches end position bewteen down position and up position. Used when tile changes position.

move ( Vector3 moveVector ) : IEnumerator

Move coroutine. Moves the tile along given vector.

Method Details

Move() public method

Move tile.
public Move ( ) : void
return void

MoveDown() public method

Move tile down.
public MoveDown ( ) : void
return void

MoveUp() public method

Move tile up.
public MoveUp ( ) : void
return void

Start() public method

Define down and up position.
public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

isLifted public_oe property

Defines if tile is lifted.
public bool isLifted
return bool

isMoving public_oe property

Defines if tile is moving.
public bool isMoving
return bool

toRemove public_oe property

Defines if tile should be removed.
public bool toRemove
return bool

upPosition public_oe property

Up position. Fixed for the whole time.
public Vector3,UnityEngine upPosition
return UnityEngine.Vector3