C# Class DisplayedElement, Hero.Coli

Inheritance: MonoBehaviour
Mostra file Open project: CyberCRI/Hero.Coli Class Usage Examples

Public Properties

Property Type Description
_atlas UIAtlas,
_id int
_sprite UISprite,

Protected Properties

Property Type Description
_currentSpriteName string
_idCounter int

Public Methods

Method Description
Create ( Transform parentTransform, Vector3 localPosition, string spriteName, Object prefab ) : DisplayedElement,
Redraw ( Vector3 newLocalPosition ) : void
Remove ( ) : void
getID ( ) : int

Protected Methods

Method Description
OnPress ( bool isPressed ) : void
setSprite ( string spriteName ) : void

Method Details

Create() public static method

public static Create ( Transform parentTransform, Vector3 localPosition, string spriteName, Object prefab ) : DisplayedElement,
parentTransform Transform
localPosition Vector3
spriteName string
prefab Object
return DisplayedElement,

OnPress() protected method

protected OnPress ( bool isPressed ) : void
isPressed bool
return void

Redraw() public method

public Redraw ( Vector3 newLocalPosition ) : void
newLocalPosition Vector3
return void

Remove() public method

public Remove ( ) : void
return void

getID() public method

public getID ( ) : int
return int

setSprite() protected method

protected setSprite ( string spriteName ) : void
spriteName string
return void

Property Details

_atlas public_oe property

public UIAtlas, _atlas
return UIAtlas,

_currentSpriteName protected_oe property

protected string _currentSpriteName
return string

_id public_oe property

public int _id
return int

_idCounter protected_oe static_oe property

protected static int _idCounter
return int

_sprite public_oe property

public UISprite, _sprite
return UISprite,