示例#1
0
 void Start()
 {
     UAE     = FindObjectOfType <UnityAdsExample>();
     rdm     = FindObjectOfType <RoundDataManager>();
     hg      = FindObjectOfType <HostGame>();
     gm      = FindObjectOfType <GameManager>();
     pm      = FindObjectOfType <PlayerManager>();
     um      = FindObjectOfType <UIManager>();
     artNoun = aNoun.text.Split(separators, System.StringSplitOptions.RemoveEmptyEntries);
     um.PocketReset();
 }
	// Use this for initialization
	void Start () {
		enemySpawnerController = GameObject.FindObjectOfType<EnemySpawnerController>();
		interactButton = GameObject.Find("Interact Button").GetComponent<Button>();
		interactButton.interactable = false;
		textBox = GameObject.Find("Text Box");
		textBox.SetActive(false);
		textController = GameObject.FindObjectOfType<InteractionTextController>();
		transitionPanelAnimator = GameObject.Find("Transition Panel").GetComponent<Animator>();
		unityAdsExample = GameObject.FindObjectOfType<UnityAdsExample>();
		gameController = GameObject.FindObjectOfType<GameController>();
	}
示例#3
0
    private void Awake()
    {
        //rdm = RoundDataManager.instance;
        //gm = GameManager.instance;
        //pm = PlayerManager.instance;
        //dm = DrawingMachine.instance;
        //hg = HostGame.instance;

        //wg = WordGenerator.instance;
        //im = InputManager.instance;
        waitStatusText = GameObject.Find("WaitingLobbyStatusText").GetComponent <TextMeshProUGUI>();
        UAE            = FindObjectOfType <UnityAdsExample>();
    }
	// Use this for initialization
	void Start () {
		world = GameObject.Find("World");
		battle = GameObject.Find("Battle");
		playerMovement = GameObject.FindObjectOfType<PlayerMovement>();
		playerClass = GameObject.FindObjectOfType<PlayerClass>();
		enemySpawnerController = GameObject.FindObjectOfType<EnemySpawnerController>();
		transitionPanel = GameObject.Find("Transition Panel");
		battle.SetActive(false);
		bossStatusController = GameObject.FindObjectOfType<BossStatusController>();
		playerInteractableController = GameObject.FindObjectOfType<PlayerInteractableController>();
		modeTransitionController = GameObject.FindObjectOfType<ModeTransitionController>();
		puzzleObjectController = GameObject.FindObjectOfType<PuzzleObjectController>();
		unityAdsExample = GameObject.FindObjectOfType<UnityAdsExample>();
	}