C# Class MinigamePexeso.Mover

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

Méthodes publiques

Свойство Type Description
isLifted bool
isMoving bool
toRemove bool
upPosition UnityEngine.Vector3

Méthodes publiques

Méthode 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

Méthode 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 méthode

Move tile.
public Move ( ) : void
Résultat void

MoveDown() public méthode

Move tile down.
public MoveDown ( ) : void
Résultat void

MoveUp() public méthode

Move tile up.
public MoveUp ( ) : void
Résultat void

Start() public méthode

Define down and up position.
public Start ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

Property Details

isLifted public_oe property

Defines if tile is lifted.
public bool isLifted
Résultat bool

isMoving public_oe property

Defines if tile is moving.
public bool isMoving
Résultat bool

toRemove public_oe property

Defines if tile should be removed.
public bool toRemove
Résultat bool

upPosition public_oe property

Up position. Fixed for the whole time.
public Vector3,UnityEngine upPosition
Résultat UnityEngine.Vector3