Class BallSpawner
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: NeoFPS.Samples.SinglePlayer.MultiScene
Assembly: NeoFPS.dll
Syntax
public class BallSpawner : MonoBehaviour, INeoSerializableComponent
Fields
ballPrefab
Declaration
public Rigidbody ballPrefab
Field Value
| Type | Description |
|---|---|
| Rigidbody |
interval
Declaration
public float interval
Field Value
| Type | Description |
|---|---|
| System.Single |
maxBalls
Declaration
public int maxBalls
Field Value
| Type | Description |
|---|---|
| System.Int32 |
spawnPoint
Declaration
public Transform spawnPoint
Field Value
| Type | Description |
|---|---|
| Transform |
Properties
activeBallCount
Declaration
public static int activeBallCount { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
ReadProperties(INeoDeserializer, NeoSerializedGameObject)
Declaration
public void ReadProperties(INeoDeserializer reader, NeoSerializedGameObject nsgo)
Parameters
| Type | Name | Description |
|---|---|---|
| INeoDeserializer | reader | |
| NeoSerializedGameObject | nsgo |
SpawnBall()
Declaration
public void SpawnBall()
WriteProperties(INeoSerializer, NeoSerializedGameObject, SaveMode)
Declaration
public void WriteProperties(INeoSerializer writer, NeoSerializedGameObject nsgo, SaveMode saveMode)
Parameters
| Type | Name | Description |
|---|---|---|
| INeoSerializer | writer | |
| NeoSerializedGameObject | nsgo | |
| SaveMode | saveMode |