C# Class ProjectStorms.CannonBallRaytracer

Inheritance: UnityEngine.MonoBehaviour
Mostrar archivo Open project: patferguson/Storms-Project

Public Methods

Method Description
Awake ( ) : void
OnEnable ( ) : void
OnTriggerEnter ( Collider a_other ) : void

Private Methods

Method Description
ExpandTrigger ( ) : void

Expands the trigger over a period of time

HitObject ( GameObject a_gameObject ) : void

Attempts to hit an object by raycast onto it first, then destroying that ship part (if ship part) and applies a force in the direction of this game object's forward vector

Update ( ) : void

Method Details

Awake() public method

public Awake ( ) : void
return void

OnEnable() public method

public OnEnable ( ) : void
return void

OnTriggerEnter() public method

public OnTriggerEnter ( Collider a_other ) : void
a_other UnityEngine.Collider
return void