Example #1
0
 // Use this for initialization
 private void Awake()
 {
     joyStickThum                    = transform.Find("JoyStick/Thum").GetComponent <JoyStickThum>();
     arrow                           = transform.Find("JoyStick/Arrow");
     joyStickTouchJudge              = GetComponent <JoyStickTouchJudge>();
     curJoyStickDir                  = JoyStickDirection.None;
     lastJoyStickDir                 = JoyStickDirection.None;
     joyStickThum                    = GetComponentInChildren <JoyStickThum>();
     joyStickThum.JoyStickMaxRadius  = joyStickMaxRadius;
     joyStickThum.JoyStickMinRadius  = joyStickMinRadius;
     joyStickThum.ThumOnTouchColor   = onTouchTumbColor;
     joyStickTouchJudge.JoyStickType = joyStickType;
 }
Example #2
0
 private void Awake()
 {
     joyStickBG   = transform.Find("JoyStick").GetComponent <RectTransform>();
     joyStickThum = transform.Find("JoyStick/Thum").GetComponent <JoyStickThum>();
 }