Ejemplo n.º 1
0
        public void StartTutorial(MainActivity activity)
        {
            _mainActivity = activity;

            // hide Tools for tuto
            _mainActivity.HideTools();
            _mainActivity.HideScroll();

            //TODO : put Bed Cachou
            _mainActivity.SetCachouImg(Resource.Drawable.Cachou);

            // start audio 1
            PlayAudio(_mainActivity, Resource.Raw.audio1);

            // Add event on nurse click
            _mainActivity.FindViewById<ImageView>(Resource.Id.bear1).Click += OnCompletion;
            _mainActivity.FindViewById<ImageView>(Resource.Id.bear2).Click += OnCompletion;
            _mainActivity.FindViewById<ImageView>(Resource.Id.bear3).Click += OnCompletion;

            _mainActivity.FindViewById<ImageView>(Resource.Id.fox1).Click += OnCompletion;
            _mainActivity.FindViewById<ImageView>(Resource.Id.fox2).Click += OnCompletion;

            _mainActivity.FindViewById<ImageView>(Resource.Id.girafe1).Click += OnCompletion;
            _mainActivity.FindViewById<ImageView>(Resource.Id.girafe2).Click += OnCompletion;

            _mainActivity.FindViewById<ImageView>(Resource.Id.panda1).Click += OnCompletion;
            _mainActivity.FindViewById<ImageView>(Resource.Id.panda2).Click += OnCompletion;
        }