class MAGES::ExampleScene::CottonBallStateManager¶
Overview¶
Controls the visual state of the Cotton ball. More…
class CottonBallStateManager: public MonoBehaviour { public: // properties bool IsWet; bool IsGrabbed; // methods void SetGrabbedState(bool isGrabbed); void SetWetState(bool isWet); };
Detailed Documentation¶
Controls the visual state of the Cotton ball.
Properties¶
bool IsWet
Gets or Sets a value indicating whether the cotton ball looks wet.
bool IsGrabbed
Gets or Sets a value indicating whether the cotton ball is grabbed.
Methods¶
void SetGrabbedState(bool isGrabbed)
Sets the grabbed state of the cotton ball.
Parameters:
isGrabbed |
State to set to. |
void SetWetState(bool isWet)
Sets the wet state of the cotton ball.
Parameters:
isWet |
State to set to. |