Show / Hide Table of Contents

Class WeaverGeoRock

A small rock that spawns geo when hit by the player

Inheritance
object
Object
Component
Behaviour
MonoBehaviour
GeoRock
WeaverGeoRock
Implements
ISerializationCallbackReceiver
Inherited Members
GeoRock.geoRockData
Namespace: WeaverCore
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
Type Description
string
| 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
Type Description
string
| 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
Type Description
string
| Edit this page View Source

jitterIntensity

Declaration
[SerializeField]
[Tooltip("The intensity of the jitter effect when hit")]
protected Vector2 jitterIntensity
Field Value
Type Description
Vector2
| 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
Type Description
SaveSpecificSettings

Properties

| Edit this page View Source

Animator

Declaration
public WeaverAnimationPlayer Animator { get; }
Property Value
Type Description
WeaverAnimationPlayer
| Edit this page View Source

FinalHitGeoPayout

Declaration
public int FinalHitGeoPayout { get; protected set; }
Property Value
Type Description
int
| Edit this page View Source

GeoPerHit

Declaration
public int GeoPerHit { get; protected set; }
Property Value
Type Description
int
| Edit this page View Source

HitsRemaining

Declaration
public virtual int HitsRemaining { get; set; }
Property Value
Type Description
int
| Edit this page View Source

RecoilTime

Declaration
public float RecoilTime { get; protected set; }
Property Value
Type Description
float
| Edit this page View Source

TotalHits

Declaration
public int TotalHits { get; protected set; }
Property Value
Type Description
int

Methods

| Edit this page View Source

Awake()

Declaration
protected virtual void Awake()
| Edit this page View Source

MainRoutine()

Declaration
protected IEnumerator MainRoutine()
Returns
Type Description
IEnumerator
| 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
Type Description
List<WeaverGeo>
| 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

ReflectionUtilities.ReflectCallMethod(object, string, object[], BindingFlags)
ReflectionUtilities.ReflectGetField(object, string, BindingFlags)
ReflectionUtilities.ReflectGetMethod(object, string, BindingFlags)
ReflectionUtilities.ReflectGetProperty(object, string, BindingFlags)
ReflectionUtilities.ReflectSetField(object, string, object, BindingFlags)
ReflectionUtilities.ReflectSetProperty(object, string, object, BindingFlags)
CoroutineUtilities.RunCoroutineWhile<T>(T, IEnumerator, Func<bool>)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾