Click or drag to resize

StressTest_FightOverFiveObjectsController Class

Controller for StressTest_FightOverFightObjects - Randomly moves 5 objects to compare positions at a later time
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          StressTestingStressTest_FightOverFiveObjectsController

Namespace:  StressTesting
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
public class StressTest_FightOverFiveObjectsController : MonoBehaviour

The StressTest_FightOverFiveObjectsController type exposes the following members.

Constructors
  NameDescription
Public methodStressTest_FightOverFiveObjectsController
Initializes a new instance of the StressTest_FightOverFiveObjectsController class
Top
Methods
  NameDescription
Private methodGetRandomVector
Randomly generate a vector with values between -1 and 1
Private methodRandomlyMoveAnObject
Randomly move a random object a random amount
Private methodStart
Public methodStopClients
Using ASL SendFloat callback, stop all movement in the scene to compare positions
Private methodUpdate
Top
Fields
  NameDescription
Private fieldobjectNumber
The object that was selected to be moved
Private fieldrandomTime
The random amount of time that needs to go by before an object can be moved
Public fieldStatic memberStopTest
Flag indicating whether or not all objects in the scene should be stopped so position comparisons can be done
Public fieldTestObjects
All of the ASL objects in this scene. Since these are ASL objects and not GameObjects, we do not need to get the ASL component before calling ASL scripts like previous examples
Private fieldtimer
The amount of time that has gone by
Top
See Also