Class WeaverGeoRock
A small rock that spawns geo when hit by the player
Inheritance
Object
Component
Behaviour
MonoBehaviour
WeaverGeoRock
Implements
ISerializationCallbackReceiver
Assembly: WeaverCore.dll
Syntax
public class WeaverGeoRock : GeoRock, ISerializationCallbackReceiver
Fields
|
Edit this page
View Source
brokenAnimation
Declaration
[SerializeField]
[Tooltip("The animation that is played when the rock is broken")]
protected string brokenAnimation
Field Value
|
Edit this page
View Source
finalBreakSounds
Declaration
[SerializeField]
protected List<AudioClip> finalBreakSounds
Field Value
Type |
Description |
List<AudioClip> |
|
|
Edit this page
View Source
finalHitDustPrefabs
Declaration
[SerializeField]
protected List<GameObject> finalHitDustPrefabs
Field Value
Type |
Description |
List<GameObject> |
|
|
Edit this page
View Source
gleamAnimation
Declaration
[Space]
[Header("Animations")]
[SerializeField]
[Tooltip("The gleam effect that the rock plays when idle")]
protected string gleamAnimation
Field Value
|
Edit this page
View Source
hitSounds
Declaration
[Space]
[Header("Sounds and Effects")]
[SerializeField]
protected List<AudioClip> hitSounds
Field Value
Type |
Description |
List<AudioClip> |
|
|
Edit this page
View Source
hitsRemainingSaveSettingsField
Declaration
[SerializeField]
[Tooltip("The name of the int field in the Save Settings used to keep track of the remaining hits left before this geo rock breaks")]
[SaveSpecificFieldName(typeof(int), "saveSettings")]
protected string hitsRemainingSaveSettingsField
Field Value
|
Edit this page
View Source
jitterIntensity
Declaration
[SerializeField]
[Tooltip("The intensity of the jitter effect when hit")]
protected Vector2 jitterIntensity
Field Value
|
Edit this page
View Source
saveSettings
Declaration
[Space]
[Header("Save Settings")]
[SerializeField]
[Tooltip("The Save Settings object used to store the remaining hits for this geo rock")]
protected SaveSpecificSettings saveSettings
Field Value
Properties
|
Edit this page
View Source
Animator
Declaration
public WeaverAnimationPlayer Animator { get; }
Property Value
|
Edit this page
View Source
FinalHitGeoPayout
Declaration
public int FinalHitGeoPayout { get; protected set; }
Property Value
|
Edit this page
View Source
GeoPerHit
Declaration
public int GeoPerHit { get; protected set; }
Property Value
|
Edit this page
View Source
HitsRemaining
Declaration
public virtual int HitsRemaining { get; set; }
Property Value
|
Edit this page
View Source
RecoilTime
Declaration
public float RecoilTime { get; protected set; }
Property Value
|
Edit this page
View Source
TotalHits
Declaration
public int TotalHits { get; protected set; }
Property Value
Methods
|
Edit this page
View Source
Awake()
Declaration
protected virtual void Awake()
|
Edit this page
View Source
MainRoutine()
Declaration
protected IEnumerator MainRoutine()
Returns
|
Edit this page
View Source
Reset()
Declaration
protected virtual void Reset()
|
Edit this page
View Source
ResetHitRemaining()
Declaration
public virtual void ResetHitRemaining()
|
Edit this page
View Source
SpawnGeo(int)
Declaration
protected List<WeaverGeo> SpawnGeo(int amount)
Parameters
Type |
Name |
Description |
int |
amount |
|
Returns
|
Edit this page
View Source
StartJitter(Vector3, Vector3)
Declaration
protected void StartJitter(Vector3 startPos, Vector3 jitterIntensity)
Parameters
Type |
Name |
Description |
Vector3 |
startPos |
|
Vector3 |
jitterIntensity |
|
|
Edit this page
View Source
StopJitter()
Declaration
protected void StopJitter()
Implements
UnityEngine.ISerializationCallbackReceiver
Extension Methods