Example #1
0
 //public RawImage background;
 //public AspectRatioFitter fit;
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
Example #2
0
    // Use this for initialization
    void Start()
    {
        LongPressRecognizer longPress = GetComponent <LongPressRecognizer>();

        longPress.OnGesture += MyLongPressEventHandler;
        TapRecognizer tapRecognizer = GetComponent <TapRecognizer> ();

        tapRecognizer.OnGesture += Tap_Gesture;
        SwipeRecognizer swipe = GetComponent <SwipeRecognizer> ();

        swipe.OnGesture += Swipe_Gesture;
        pctrl            = GameObject.Find("GameController").GetComponent <PetController> ();
        tp     = GameObject.Find("CameraController").GetComponent <takePhoto> ();
        uictrl = GameObject.Find("UI Root").GetComponent <UIController> ();
    }