public void Hide(GameInspector node) { if (node == hot) { hot = null; } }
private void Start() { MeshRenderer renderer = GetComponent <MeshRenderer>(); renderer.enabled = true; gameInspector = GameObject.FindObjectOfType <GameInspector>(); boxCollider = GetComponent <BoxCollider>(); source = GetComponent <AudioSource>(); }
// Use this for initialization private void Start() { game = GameObject.Find("Game"); GameInspector gameInspector = game.GetComponent <GameInspector>(); maxTeamHealth = gameInspector.MaxTeamHealth; GameObject playerPrefab = GameObject.Find("Player"); DamageAbleObject playerDamageable = gameInspector.PlayerPrefab.GetComponent <DamageAbleObject>(); //maxPlayerHealth = playerDamageable.MaxHealth; boss = GameObject.Find("Boss"); bossDamageable = boss.GetComponent <DamageAbleObject>(); maxBossHealth = bossDamageable.MaxHealth; bossHealthFill = BossHealthbar.GetComponent <Image>(); Time.timeScale = 1; GlobalReferences.CurrentGameState = GlobalReferences.GameState.Play; }
public void Show(GameInspector node) { hot = node; }
public void Hide(GameInspector node) { if (node == hot) hot = null; }