예제 #1
0
    void Start()
    {
        player = GameObject.FindGameObjectWithTag("Player").GetComponent<PlayerController>();
        if (!player)
            Debug.Log("EndControll.cs: Player not Found!");

		playerAnimator = player.GetComponentInChildren<PlayerAnimator>();
		if (!playerAnimator)
			Debug.Log("EndControll.cs: PlayerAnimator not Found!");

        gridManager = GameObject.FindObjectOfType<GridManager>();
        if (!gridManager)
            Debug.Log("EndControll.cs: Grid Manager not Found!");

        ui = GameObject.FindObjectOfType<UICollectionItems>();
        if (!ui)
            Debug.Log("EndControll.cs: ui not Found!");

        data =  GameObject.FindObjectOfType<ParkourData>();
        if (!data)
            Debug.Log("EndControll.cs: ParkourData not Found!");

		mainParkour = GameObject.FindObjectOfType<MainParkour>();
		if (!mainParkour)
			Debug.Log("EndControll.cs: MainParkour not Found!");
    }
예제 #2
0
 void Start()
 {
     data = GameObject.FindObjectOfType<ParkourData>();
     if(!data)
     {
         Debug.Log("ParkourData not Found!");
     }
 }
    void Start ()
    {
        data = GameObject.FindObjectOfType<ParkourData>();
        if (!data)
            Debug.Log("ParkourData not Found!");

        resultDialog = GameObject.FindObjectOfType<ResultDialog>();
        if (!resultDialog)
            Debug.Log("ResultDialog not Found!");
    }
예제 #4
0
 void Start () {
     item = transform.parent.GetComponent<Collection>();
     data = GameObject.FindObjectOfType<ParkourData>();
 }