Exemplo n.º 1
0
 void Start()
 {
     //Se busca el gameObject con el nombre de Naosu
     loliHUD        = GameObject.Find("naosu");
     stockObject    = GameObject.Find("HealthUI");
     defeatedObject = GameObject.Find("DefeatedCanvas");
     defeatedCanvas = defeatedObject.GetComponent <Canvas>();
     anim           = loliHUD.GetComponent <Animator>();
     stockScript    = stockObject.GetComponent <DestroyHeart>();
 }
Exemplo n.º 2
0
    void Start()
    {
        characterController = GetComponent <CharacterController>();

        //Se busca el gameObject con el nombre de Naosu
        loliHUD        = GameObject.Find("naosu");
        stockObject    = GameObject.Find("HealthUI");
        msObject       = GameObject.Find("MainScripts");
        defeatedObject = GameObject.Find("DefeatedCanvas");
        defeatedCanvas = defeatedObject.GetComponent <Canvas>();
        anim           = loliHUD.GetComponent <Animator>();
        stockScript    = stockObject.GetComponent <DestroyHeart>();
        spawn          = GameObject.Find("spawnPoint");
    }