![]() |
Corgi Engine v9.3
|
This setup uses two sprite masks, bound in the inspector, to enable one and then disable the other to mask specific parts of a level More...
Public Member Functions | |
virtual void | OnMMEvent (MMSpriteMaskEvent spriteMaskEvent) |
When we catch a double mask event, we handle it More... | |
![]() | |
void | OnMMEvent (T eventType) |
Public Attributes | |
MMSpriteMask | Mask1 |
the first sprite mask More... | |
MMSpriteMask | Mask2 |
the second sprite mask More... | |
Protected Member Functions | |
virtual void | Awake () |
On awake we initialize our masks More... | |
virtual void | SwitchCurrentMask () |
Sets new values for current and dormant masks More... | |
virtual IEnumerator | DoubleMaskCo (MMSpriteMaskEvent spriteMaskEvent) |
A coroutine designed to mask the first mask after having activated and moved the dormant one to the new position More... | |
virtual void | OnEnable () |
On enable we start listening for events More... | |
virtual void | OnDisable () |
On disable we stop listening for events More... | |
Protected Attributes | |
MMSpriteMask | _currentMask |
MMSpriteMask | _dormantMask |
This setup uses two sprite masks, bound in the inspector, to enable one and then disable the other to mask specific parts of a level
|
protectedvirtual |
On awake we initialize our masks
|
protectedvirtual |
A coroutine designed to mask the first mask after having activated and moved the dormant one to the new position
spriteMaskEvent |
|
protectedvirtual |
On disable we stop listening for events
|
protectedvirtual |
On enable we start listening for events
|
virtual |
When we catch a double mask event, we handle it
spriteMaskEvent |
|
protectedvirtual |
Sets new values for current and dormant masks
|
protected |
|
protected |
MMSpriteMask MoreMountains.CorgiEngine.MMDoubleSpriteMask.Mask1 |
the first sprite mask
MMSpriteMask MoreMountains.CorgiEngine.MMDoubleSpriteMask.Mask2 |
the second sprite mask