Create a class that create nudge effect on grass and some other items. When player get near items, it will create a wobbly effect.
More...
|
void | Awake () |
|
void | OnTriggerEnter2D (Collider2D collision) |
| Detect and starts coroutines when player collided with an object that this script is attached to More...
|
|
void | OnTriggerExit2D (Collider2D collision) |
| Detect and starts coroutines when player exit from the collider that this bject is attached to More...
|
|
IEnumerator | RotateAntiClock () |
| Rotate the gameObject anti clock wise. We rotate it by 2 in 4 steps Then we rotate it in the opposite direction by 2 in 5 steps Finally, we return to the original position. More...
|
|
IEnumerator | RotateClock () |
| Rotate the gameObject clock wise. We rotate it by 2 in 4 steps Then we rotate it in the opposite direction by 2 in 5 steps Finally, we return to the original position. More...
|
|
Create a class that create nudge effect on grass and some other items. When player get near items, it will create a wobbly effect.
Definition at line 8 of file ItemNudge.cs.
◆ Awake()
◆ OnTriggerEnter2D()
void ItemNudge.OnTriggerEnter2D |
( |
Collider2D |
collision | ) |
|
|
inlineprivate |
Detect and starts coroutines when player collided with an object that this script is attached to
- Parameters
-
Definition at line 23 of file ItemNudge.cs.
◆ OnTriggerExit2D()
void ItemNudge.OnTriggerExit2D |
( |
Collider2D |
collision | ) |
|
|
inlineprivate |
Detect and starts coroutines when player exit from the collider that this bject is attached to
- Parameters
-
Definition at line 42 of file ItemNudge.cs.
◆ RotateAntiClock()
IEnumerator ItemNudge.RotateAntiClock |
( |
| ) |
|
|
inlineprivate |
Rotate the gameObject anti clock wise. We rotate it by 2 in 4 steps Then we rotate it in the opposite direction by 2 in 5 steps Finally, we return to the original position.
- Returns
Definition at line 64 of file ItemNudge.cs.
◆ RotateClock()
IEnumerator ItemNudge.RotateClock |
( |
| ) |
|
|
inlineprivate |
Rotate the gameObject clock wise. We rotate it by 2 in 4 steps Then we rotate it in the opposite direction by 2 in 5 steps Finally, we return to the original position.
- Returns
Definition at line 94 of file ItemNudge.cs.
◆ m_IsAnimating
bool ItemNudge.m_IsAnimating = false |
|
private |
◆ m_Pause
WaitForSeconds ItemNudge.m_Pause |
|
private |
The documentation for this class was generated from the following file: