Beispiel #1
0
    /// <summary>
    /// Initialises the script.
    /// </summary>
    ///
    void Start()
    {
        // remember the scale at start
        originalSize = this.transform.localScale;

        // create the variables to check the state of the input device
        inputReset = new InputDeviceHandler(deviceName, channelNameReset);
        inputScale = new InputDeviceHandler(deviceName, channelNameScale);
    }
Beispiel #2
0
 void Start()
 {
     inputFire = new InputDeviceHandler(deviceName, channelName);
 }
 void Start()
 {
     rayComponent = GetComponentInChildren <PointerRay>();
     button       = new InputDeviceHandler(deviceName, channelName, alternateButtonName);
 }