C# Class GrowOnLand, Elemental

Inheritance: MonoBehaviour
Show file Open project: CodeStrumpet/Elemental

Public Properties

Property Type Description
debugRaycast bool
frameSkip int
growSpeed float
landMesh Transform
rayDistance float
rayOffset float
shrinkSpeed float

Public Methods

Method Description
DrawDebugRaycast ( Vector3 origin, Color c ) : void
Grow ( ) : void
Setup ( ) : void
Shrink ( ) : void
Start ( ) : void
Transition ( State, newState ) : void
Update ( ) : void

Private Methods

Method Description
DoRaycast ( ) : bool
RaycastToLand ( ) : bool

Method Details

DrawDebugRaycast() public method

public DrawDebugRaycast ( Vector3 origin, Color c ) : void
origin Vector3
c Color
return void

Grow() public method

public Grow ( ) : void
return void

Setup() public method

public Setup ( ) : void
return void

Shrink() public method

public Shrink ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Transition() public method

public Transition ( State, newState ) : void
newState State,
return void

Update() public method

public Update ( ) : void
return void

Property Details

debugRaycast public property

public bool debugRaycast
return bool

frameSkip public property

public int frameSkip
return int

growSpeed public property

public float growSpeed
return float

landMesh public property

public Transform landMesh
return Transform

rayDistance public property

public float rayDistance
return float

rayOffset public property

public float rayOffset
return float

shrinkSpeed public property

public float shrinkSpeed
return float