Example #1
0
    // Initialization
    void Start()
    {
        serialController = GameObject.Find("SerialController").GetComponent <SerialController>();

        serialController.SetTearDownFunction(lightsShutdown);

        Debug.Log("Press 1 or 2 to execute some actions");
    }
Example #2
0
 // Use this for initialization
 void Start()
 {
     body             = GetComponent <Rigidbody>();
     serialController = GameObject.Find("SerialController").GetComponent <SerialController>();
     serialController.SetTearDownFunction(shutDown);
 }
 // Initialization
 void Start()
 {
     serialController.SetTearDownFunction(Teardown);
 }
Example #4
0
    // Initialization
    void Start()
    {
        serialController = GameObject.Find("SerialController").GetComponent <SerialController>();

        serialController.SetTearDownFunction(lightsShutdown);
    }