C# Класс Dive, goalBall

This script is in charge of making the player dive. This accomplishes moving the player down as well as rotating their position.
Наследование: NetworkBehaviour
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
ballSlowdown float
diveSpeed float
player GameObject

Открытые методы

Метод Описание
DivePressed ( ) : void

Activates a dive action to occur.

OnCollisionEnter ( Collision col ) : void

When the player collieds with the ball, decrease the speed of the ball.

StandUp ( ) : void

Allows outside classes to reset standing parameters (specifically ResetAim)

Start ( ) : void

Initializes all of the variables needed for this script.

Update ( ) : void

Makes diving smother when a dive is detected. Animates the player diving.

Описание методов

DivePressed() публичный Метод

Activates a dive action to occur.
public DivePressed ( ) : void
Результат void

OnCollisionEnter() публичный Метод

When the player collieds with the ball, decrease the speed of the ball.
public OnCollisionEnter ( Collision col ) : void
col Collision
Результат void

StandUp() публичный Метод

Allows outside classes to reset standing parameters (specifically ResetAim)
public StandUp ( ) : void
Результат void

Start() публичный Метод

Initializes all of the variables needed for this script.
public Start ( ) : void
Результат void

Update() публичный Метод

Makes diving smother when a dive is detected. Animates the player diving.
public Update ( ) : void
Результат void

Описание свойств

ballSlowdown публичное свойство

public float ballSlowdown
Результат float

diveSpeed публичное свойство

public float diveSpeed
Результат float

player публичное свойство

public GameObject player
Результат GameObject