예제 #1
0
	// Use this for initialization
	void Start () {
		worldCamera = GetComponentInChildren<Camera>();
		eventSystem = GameObject.FindObjectOfType<EventSystem>();
		playerInteratableController = GameObject.FindObjectOfType<PlayerInteractableController>();
		bossStatusController = GameObject.FindObjectOfType<BossStatusController>();

		lastKnownPosition = transform.position;
	}
	void Awake () {
		battleResultsPanel = GameObject.FindObjectOfType<BattleResultsController>().gameObject;
		battleResultsPanel.SetActive(false);
		playerStatusController = GameObject.FindObjectOfType<PlayerStatusController>();
		enemyActionBar = GameObject.FindObjectOfType<EnemyActionBar>();
		battle = GameObject.Find("Battle");
		bossStatusController = GameObject.FindObjectOfType<BossStatusController>();
		enemySpawnerController = GameObject.FindObjectOfType<EnemySpawnerController>();
	}
예제 #3
0
	// 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>();
	}
예제 #4
0
	// Use this for initialization
	void Awake () {
		skill1 = new Skill (skillSprite1, skillName1, levelOfSkill1, baseDamage1, energyCost1, cooldownTime1, statusEffectOfSkill1, chanceOfStatusEffect1, statusEffectDurationInSeconds1);
		skill2 = new Skill (skillSprite2, skillName2, levelOfSkill2, baseDamage2, energyCost2, cooldownTime2, statusEffectOfSkill2, chanceOfStatusEffect2, statusEffectDurationInSeconds2);
		skill3 = new Skill (skillSprite3, skillName3, levelOfSkill3, baseDamage3, energyCost3, cooldownTime3, statusEffectOfSkill3, chanceOfStatusEffect3, statusEffectDurationInSeconds3);
		currentHealth = maxHealth;
		currentStatus = StatusEffect.None;

		bossStatusController = GameObject.FindObjectOfType<BossStatusController>();

		skill1ButtonObject = GameObject.Find("Skill 1");
		skill2ButtonObject = GameObject.Find("Skill 2");
		skill3ButtonObject = GameObject.Find("Skill 3");
	}