// Use this for initialization void Start() { tScript = this.GetComponent <Teleporter>(); cScript = this.GetComponent <Controller>(); hScript = this.GetComponent <Hoverboard>(); gScript = this.GetComponent <Grappling>(); pScript = this.GetComponent <PlatformMvt>(); sScript = this.GetComponent <SwingingArms>(); zScript = this.GetComponent <PinchZoom>(); jScript = this.GetComponent <JetPack>(); spScript = this.GetComponent <SkiPole>(); eScript = this.GetComponent <Soar_Earth>(); TeleMsg = GameObject.Find("ModeUpdate/Canvas/TeleMsg"); ControlMsg = GameObject.Find("ModeUpdate/Canvas/ControlMsg"); HoverMsg = GameObject.Find("ModeUpdate/Canvas/HoverMsg"); GrappleMsg = GameObject.Find("ModeUpdate/Canvas/GrappleMsg"); PlatformMsg = GameObject.Find("ModeUpdate/Canvas/PlatformMsg"); SwingingMsg = GameObject.Find("ModeUpdate/Canvas/SwingingMsg"); PinchMsg = GameObject.Find("ModeUpdate/Canvas/PinchMsg"); JetMsg = GameObject.Find("ModeUpdate/Canvas/JetMsg"); SkiMsg = GameObject.Find("ModeUpdate/Canvas/SkiMsg"); EarthMsg = GameObject.Find("ModeUpdate/Canvas/EarthMsg"); TeleInstr = GameObject.Find("ModeUpdate/Canvas/TeleInstr"); ControlInstr = GameObject.Find("ModeUpdate/Canvas/ControlInstr"); HoverInstr = GameObject.Find("ModeUpdate/Canvas/HoverInstr"); GrappleInstr = GameObject.Find("ModeUpdate/Canvas/GrappleInstr"); PlatformInstr = GameObject.Find("ModeUpdate/Canvas/PlatformInstr"); SwingingInstr = GameObject.Find("ModeUpdate/Canvas/SwingingInstr"); PinchInstr = GameObject.Find("ModeUpdate/Canvas/PinchInstr"); JetInstr = GameObject.Find("ModeUpdate/Canvas/JetInstr"); SkiInstr = GameObject.Find("ModeUpdate/Canvas/SkiInstr"); EarthInstr = GameObject.Find("ModeUpdate/Canvas/EarthInstr"); Timer = GameObject.Find("ModeUpdate/Canvas/Timer"); Body = this.GetComponent <Rigidbody>(); }
void Awake() { if (_instance == null) _instance = this; else if (_instance != this) { Destroy(gameObject); } _pinchZoom = GetComponent<PinchZoom>(); _movement = GetComponent<IntroSceneMovement>(); }
void Awake() { if (_instance == null) { _instance = this; } else if (_instance != this) { Destroy(gameObject); } _pinchZoom = GetComponent <PinchZoom>(); _movement = GetComponent <IntroSceneMovement>(); }
private async void onImageClicked(ImageSource source) { var modalPage = new ContentPage(); ScrollView view = new ScrollView(); StackLayout layout = new StackLayout(); CachedImage image = new CachedImage(); PinchZoom pinchImage = new PinchZoom(); image.Source = source; image.Margin = new Thickness(0, 130, 0, 130); image.DownsampleToViewSize = false; image.VerticalOptions = LayoutOptions.Center; image.HorizontalOptions = LayoutOptions.Center; view.VerticalOptions = LayoutOptions.CenterAndExpand; layout.VerticalOptions = LayoutOptions.CenterAndExpand; pinchImage.Content = image; //pinchImage.IsClippedToBounds = true; layout.Children.Add(pinchImage); view.Content = layout; modalPage.Content = view; await navigation.PushModalAsync(modalPage); }
private void Reset() { PinchZoom pz = GetComponent <PinchZoom>(); }
private void Awake() { followTarget = gameObject.GetComponent<FollowTarget> (); pinchZoom = gameObject.GetComponent<PinchZoom> (); }
private void Awake() { followTarget = gameObject.GetComponent <FollowTarget>(); pinchZoom = gameObject.GetComponent <PinchZoom>(); }