C# Класс ShipFunctions

Наследование: MonoBehaviour
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
gridSize float

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

Метод Описание
RelSnapToGrid ( Vector2 pos ) : Vector2
SetNextId ( GameInfo, gameInfo, Ship, ship ) : void
getCaptainName ( ushort team ) : string
getMothership ( GameObject myGO ) : GameObject
getMothership ( ushort team ) : GameObject
getShip ( GameObject myGO ) : Ship,
getShip ( int shipID ) : Ship,
getShipGO ( GameObject myGO ) : GameObject
isMothership ( GameObject myGO ) : bool
partOverlappingShip ( GameObject part ) : bool
partsOverlappingShip ( List parts ) : bool

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

RelSnapToGrid() публичный статический Метод

public static RelSnapToGrid ( Vector2 pos ) : Vector2
pos Vector2
Результат Vector2

SetNextId() публичный статический Метод

public static SetNextId ( GameInfo, gameInfo, Ship, ship ) : void
gameInfo GameInfo,
ship Ship,
Результат void

getCaptainName() публичный статический Метод

public static getCaptainName ( ushort team ) : string
team ushort
Результат string

getMothership() публичный статический Метод

public static getMothership ( GameObject myGO ) : GameObject
myGO GameObject
Результат GameObject

getMothership() публичный статический Метод

public static getMothership ( ushort team ) : GameObject
team ushort
Результат GameObject

getShip() публичный статический Метод

public static getShip ( GameObject myGO ) : Ship,
myGO GameObject
Результат Ship,

getShip() публичный статический Метод

public static getShip ( int shipID ) : Ship,
shipID int
Результат Ship,

getShipGO() публичный статический Метод

public static getShipGO ( GameObject myGO ) : GameObject
myGO GameObject
Результат GameObject

isMothership() публичный статический Метод

public static isMothership ( GameObject myGO ) : bool
myGO GameObject
Результат bool

partOverlappingShip() публичный статический Метод

public static partOverlappingShip ( GameObject part ) : bool
part GameObject
Результат bool

partsOverlappingShip() публичный статический Метод

public static partsOverlappingShip ( List parts ) : bool
parts List
Результат bool

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

gridSize публичное статическое свойство

public static float gridSize
Результат float