C# Class ShipFunctions

Inheritance: MonoBehaviour
Afficher le fichier Open project: drakelinglabs/unityarmada Class Usage Examples

Méthodes publiques

Свойство Type Description
gridSize float

Méthodes publiques

Méthode Description
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

Method Details

RelSnapToGrid() public static méthode

public static RelSnapToGrid ( Vector2 pos ) : Vector2
pos Vector2
Résultat Vector2

SetNextId() public static méthode

public static SetNextId ( GameInfo, gameInfo, Ship, ship ) : void
gameInfo GameInfo,
ship Ship,
Résultat void

getCaptainName() public static méthode

public static getCaptainName ( ushort team ) : string
team ushort
Résultat string

getMothership() public static méthode

public static getMothership ( GameObject myGO ) : GameObject
myGO GameObject
Résultat GameObject

getMothership() public static méthode

public static getMothership ( ushort team ) : GameObject
team ushort
Résultat GameObject

getShip() public static méthode

public static getShip ( GameObject myGO ) : Ship,
myGO GameObject
Résultat Ship,

getShip() public static méthode

public static getShip ( int shipID ) : Ship,
shipID int
Résultat Ship,

getShipGO() public static méthode

public static getShipGO ( GameObject myGO ) : GameObject
myGO GameObject
Résultat GameObject

isMothership() public static méthode

public static isMothership ( GameObject myGO ) : bool
myGO GameObject
Résultat bool

partOverlappingShip() public static méthode

public static partOverlappingShip ( GameObject part ) : bool
part GameObject
Résultat bool

partsOverlappingShip() public static méthode

public static partsOverlappingShip ( List parts ) : bool
parts List
Résultat bool

Property Details

gridSize public_oe static_oe property

public static float gridSize
Résultat float