TransformPlayer Class

public sealed class TransformPlayer : IPlayer

An IPlayer implementation for a transform based player. When you set Player Type to Transform Player on an Active Grid, internally an object of this type is created. Normally you would not need to use this class yourself, however if you are presented with a method that takes an IPlayer or IPlayer[], you can use this to be able to pass in a valid object to that method.

Properties

Name Type Description
PlayerTransform Transform

The Transform of the Player assigned to this TransformPlayer. This property is intended solely so that you can verify that the correct Transform is being used by the Active Grid.

Position

Gets and sets the position of the IPlayer. Uses Transform.position property

Constructors

TransformPlayer(Transform)

public TransformPlayer(Transform playerTransform)

Constructs a new instance of the Transform Player using the playerTransform.

Parameters

Name Type Description
playerTransform Transform

The transform associated with the player.