Corgi Engine  v8.8
MoreMountains.CorgiEngine.RandomSprite Class Reference

This component will randomize the object's sprite renderer's sprite out of a collection More...

Inheritance diagram for MoreMountains.CorgiEngine.RandomSprite:
MoreMountains.CorgiEngine.CorgiMonoBehaviour

Public Attributes

Sprite[] SpriteCollection
 the collection of sprite to choose from More...
 

Protected Member Functions

virtual void Start ()
 On Start, initializes the renderer and randomizes it More...
 
virtual void Randomize ()
 Returns a random sprite out of the collection More...
 

Protected Attributes

SpriteRenderer _spriteRenderer
 

Detailed Description

This component will randomize the object's sprite renderer's sprite out of a collection

Member Function Documentation

◆ Randomize()

virtual void MoreMountains.CorgiEngine.RandomSprite.Randomize ( )
protectedvirtual

Returns a random sprite out of the collection

◆ Start()

virtual void MoreMountains.CorgiEngine.RandomSprite.Start ( )
protectedvirtual

On Start, initializes the renderer and randomizes it

Member Data Documentation

◆ _spriteRenderer

SpriteRenderer MoreMountains.CorgiEngine.RandomSprite._spriteRenderer
protected

◆ SpriteCollection

Sprite [] MoreMountains.CorgiEngine.RandomSprite.SpriteCollection

the collection of sprite to choose from


The documentation for this class was generated from the following file: