C# Class PlayerLocal, newsupermeatboy

Inheritance: MonoBehaviour
Show file Open project: hagish/newsupermeatboy Class Usage Examples

Public Properties

Property Type Description
airborne_speed_change float
airborne_x_accel_factor float
airborne_x_slowdown_factor float
gravity float
grounded_speed_change float
keyJump KeyCode,
keyLeft KeyCode,
keyRight KeyCode,
myJumpSpeed float
prefab_bloodball Object
slide_grav_factor float
slide_jump_speed_x float
slide_jump_speed_y float
slide_keep_speed float
speed_air float
speed_ground float
time_since_jump_airmove_slower float

Public Methods

Method Description
BloodAgainstObjectAllowed ( GameObject o ) : bool
MyMoveInit ( ) : void
SpawnBloodOnContact ( ControllerColliderHit hit ) : void
SpawnBloodOnContact2 ( Vector3 hit_point, Vector3 hit_normal ) : void
setKeyBindings ( KeyCode, left, KeyCode, right, KeyCode, jump ) : void

Private Methods

Method Description
BoundsContainedIn ( Bounds inner, Bounds outer ) : bool
ChangeValueWithSpeed ( float old, float target, float change_speed ) : float
Interpolate ( float a, float b, float t ) : float
JumpAndBumpKillCheck ( ) : void
OnCollisionEnter ( Collision collision ) : void
OnCollisionStay ( Collision collisionInfo ) : void
OnControllerColliderHit ( ControllerColliderHit hit ) : void
Start ( ) : void
Update ( ) : void

Method Details

BloodAgainstObjectAllowed() public static method

public static BloodAgainstObjectAllowed ( GameObject o ) : bool
o GameObject
return bool

MyMoveInit() public method

public MyMoveInit ( ) : void
return void

SpawnBloodOnContact() public static method

public static SpawnBloodOnContact ( ControllerColliderHit hit ) : void
hit UnityEngine.ControllerColliderHit
return void

SpawnBloodOnContact2() public static method

public static SpawnBloodOnContact2 ( Vector3 hit_point, Vector3 hit_normal ) : void
hit_point Vector3
hit_normal Vector3
return void

setKeyBindings() public method

public setKeyBindings ( KeyCode, left, KeyCode, right, KeyCode, jump ) : void
left KeyCode,
right KeyCode,
jump KeyCode,
return void

Property Details

airborne_speed_change public static property

public static float airborne_speed_change
return float

airborne_x_accel_factor public static property

public static float airborne_x_accel_factor
return float

airborne_x_slowdown_factor public static property

public static float airborne_x_slowdown_factor
return float

gravity public static property

public static float gravity
return float

grounded_speed_change public static property

public static float grounded_speed_change
return float

keyJump public property

public KeyCode, keyJump
return KeyCode,

keyLeft public property

public KeyCode, keyLeft
return KeyCode,

keyRight public property

public KeyCode, keyRight
return KeyCode,

myJumpSpeed public static property

public static float myJumpSpeed
return float

prefab_bloodball public static property

public static Object prefab_bloodball
return Object

slide_grav_factor public static property

public static float slide_grav_factor
return float

slide_jump_speed_x public static property

public static float slide_jump_speed_x
return float

slide_jump_speed_y public static property

public static float slide_jump_speed_y
return float

slide_keep_speed public static property

public static float slide_keep_speed
return float

speed_air public static property

public static float speed_air
return float

speed_ground public static property

public static float speed_ground
return float

time_since_jump_airmove_slower public static property

public static float time_since_jump_airmove_slower
return float