void ShowSlide(int slideNumber)
    {
        currentSlide = slideNumber;
        SlideScript slide = slides[slideNumber];

        if (slide)
        {
            if (slide.clearScreen)
            {
                clearScreen();
            }
            slide.gameObject.SetActive(true);
        }
    }
Beispiel #2
0
 private void Awake()
 {
     if (!mController)
     {
         mController = GetComponent <MovementController>();
     }
     if (!sController)
     {
         sController = GetComponent <SlideScript>();
     }
     if (!cController)
     {
         cController = GetComponent <CrouchScript>();
     }
     if (!gController)
     {
         gController = GetComponent <GlideScript>();
     }
     if (!fController)
     {
         fController = GetComponent <FlyScript>();
     }
 }