Exemplo n.º 1
0
    void Start()
    {
        balancingSystem = GameObject.FindGameObjectWithTag("GameController").GetComponent <BalancingSystem>();
        rigidbody       = GetComponent <Rigidbody>();

        //startHealth = balancingSystem.difficultyLevel.startingLife;

        damageParticles = GetComponentInChildren <ParticleSystem>();
        canvas          = GameObject.FindGameObjectWithTag("MainCanvas").GetComponent <UberCanvasScript>();
    }
    void Start()
    {
        easy   = new Easy();
        medium = new Medium();
        hard   = new Hard();

        difficultyLevel  = medium;
        playerController = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerController>();

        canvas = GameObject.FindGameObjectWithTag("MainCanvas").GetComponent <UberCanvasScript>();
    }
Exemplo n.º 3
0
 private void OnEnable()
 {
     canvas = GameObject.FindGameObjectWithTag("MainCanvas").GetComponent <UberCanvasScript>();
 }