Exemple #1
0
 public void Hide(GameInspector node)
 {
     if (node == hot)
     {
         hot = null;
     }
 }
Exemple #2
0
    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;
    }
Exemple #4
0
 public void Show(GameInspector node)
 {
     hot = node;
 }
 public void Show(GameInspector node)
 {
     hot = node;
 }
 public void Hide(GameInspector node)
 {
     if (node == hot)
         hot = null;
 }