private float axisCentre;                               // The centre of the axis


    void OnEnable()
    {
        // if the axis doesnt exist create a new one in cross platform input
        axis = CrossPlatformInput.VirtualAxisReference(axisName) ?? new CrossPlatformInput.VirtualAxis(axisName);

        // get the screen rect of the gui element
        rect = GetComponent <GUIElement>().GetScreenRect();

        FindPairedButton();
    }
Example #2
0
 // Token: 0x06004DCB RID: 19915 RVA: 0x001A1465 File Offset: 0x0019F865
 private void OnEnable()
 {
     this.axis = (CrossPlatformInput.VirtualAxisReference(this.axisName) ?? new CrossPlatformInput.VirtualAxis(this.axisName));
     this.rect = base.GetComponent <GUIElement>().GetScreenRect();
     this.FindPairedButton();
 }