Exemplo n.º 1
0
 void Start()
 {
     sceneFadeAnimator = GetComponent <Animator>();
     player            = GameObject.Find("Player");
     playerBasicIntro  = player.GetComponent <PlayerBasicIntro>();
     playerController  = player.GetComponent <PlayerController>();
     // sceneFadeAnimator.Play("sceneFadeOut");
 }
Exemplo n.º 2
0
 //  private bool _flickering;
 // Start is called before the first frame update
 void Start()
 {
     cursor = new Texture2D(2, 2);
     cursor.LoadImage(File.ReadAllBytes("Assets/Sprites/mouseclick.png"));
     Min         = 10f;
     Max         = 40f;
     increasing  = true;
     Strength    = 25;
     lightSource = gameObject.transform.GetChild(0).gameObject.GetComponent <Light>();
     playerIntro = GameObject.Find("Player").GetComponent <PlayerBasicIntro>();
     torch       = GameObject.Find("Torch");
     hintManager = GameObject.Find("Hint").GetComponent <HintManager>();
 }
Exemplo n.º 3
0
 void Start()
 {
     hintImage = gameObject.transform.GetChild(0).GetChild(1).gameObject.GetComponent <Image>();
     if (currentScene == "MainWorld")
     {
         playerController = GameObject.Find("Player").GetComponent <PlayerController>();
     }
     else
     {
         playerBasicController = GameObject.Find("Player").GetComponent <PlayerBasicIntro>();
         setHint("Find Shelter!", "wasd");
     }
     timer = 0;
 }