C# Class kTileDynamic, Unity3D

Inheritance: MonoBehaviour
Mostra file Open project: k-lock/Unity3D Class Usage Examples

Public Properties

Property Type Description
_currentFrame int
_frameRects Rect[]
_frameTick float
_height float
_lastFrame int
_width float
looping bool
playAnimation bool

Public Methods

Method Description
Awake ( ) : void
Components ( ) : void
Frame_check ( ) : void
Frame_draw ( ) : void
MESH_refresh ( ) : void
MESH_setup ( Rect UVrect ) : void
MESH_setup ( float width, float height, Rect UVrect ) : void
MeshUpdate ( ) : void
OnDisable ( ) : void
OnEnable ( ) : void
PixelCoordToUVCoord ( Vector2 xy ) : Vector2
PixelSpaceToUVSpace ( Vector2 xy ) : Vector2
ResetFrameTime ( ) : void
Update ( ) : void

Private Methods

Method Description
Frame_calc ( ) : void
UV_setup ( ) : Vector2[]

Method Details

Awake() public method

public Awake ( ) : void
return void

Components() public method

public Components ( ) : void
return void

Frame_check() public method

public Frame_check ( ) : void
return void

Frame_draw() public method

public Frame_draw ( ) : void
return void

MESH_refresh() public method

public MESH_refresh ( ) : void
return void

MESH_setup() public method

public MESH_setup ( Rect UVrect ) : void
UVrect Rect
return void

MESH_setup() public method

public MESH_setup ( float width, float height, Rect UVrect ) : void
width float
height float
UVrect Rect
return void

MeshUpdate() public method

public MeshUpdate ( ) : void
return void

OnDisable() public method

public OnDisable ( ) : void
return void

OnEnable() public method

public OnEnable ( ) : void
return void

PixelCoordToUVCoord() public method

public PixelCoordToUVCoord ( Vector2 xy ) : Vector2
xy Vector2
return Vector2

PixelSpaceToUVSpace() public method

public PixelSpaceToUVSpace ( Vector2 xy ) : Vector2
xy Vector2
return Vector2

ResetFrameTime() public method

public ResetFrameTime ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

_currentFrame public_oe property

public int _currentFrame
return int

_frameRects public_oe property

public Rect[] _frameRects
return Rect[]

_frameTick public_oe property

public float _frameTick
return float

_height public_oe property

public float _height
return float

_lastFrame public_oe property

public int _lastFrame
return int

_width public_oe property

public float _width
return float

looping public_oe property

public bool looping
return bool

playAnimation public_oe property

public bool playAnimation
return bool