C# Class ProjectStorms.CannonBallBehaviour

Inheritance: UnityEngine.MonoBehaviour
Exibir arquivo Open project: patferguson/Storms-Project

Public Properties

Property Type Description
cannonBallCollider UnityEngine.Collider
cannonBallLifetime float
endScale UnityEngine.Vector3
selfCollisionTrigger UnityEngine.Collider

Public Methods

Method Description
Awake ( ) : void
FixedUpdate ( ) : void
OnEnable ( ) : void
OnTriggerEnter ( Collider a_other ) : void
OnTriggerStay ( Collider a_other ) : void
Start ( ) : void
Update ( ) : void

Private Methods

Method Description
SetCannBallColEnabled ( bool a_colEnable ) : void

Sets whether the cannonball collider is active.

Method Details

Awake() public method

public Awake ( ) : void
return void

FixedUpdate() public method

public FixedUpdate ( ) : 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

OnTriggerStay() public method

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

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

cannonBallCollider public_oe property

Physical collider for the cannon ball.
public Collider,UnityEngine cannonBallCollider
return UnityEngine.Collider

cannonBallLifetime public_oe property

How long the cannonballs should live for.
public float cannonBallLifetime
return float

endScale public_oe property

Scale of the cannonball at the end of its lifetime.
public Vector3,UnityEngine endScale
return UnityEngine.Vector3

selfCollisionTrigger public_oe property

For ignoring collisions with the owner's player ship & own base.
public Collider,UnityEngine selfCollisionTrigger
return UnityEngine.Collider