Ejemplo n.º 1
0
 void Start()
 {
     //Get player / Get Positions & Set position
     player      = GameObject.Find("Player");
     Lanes       = player.GetComponent <LanesManager>();
     playerLanes = LanesManager.lanes;
     player.transform.position = playerLanes[1];
     isShooting = GameObject.Find("scythe").GetComponent <ScytheShoot>();
 }
    // Start is called before the first frame update
    void Start()
    {
        Sound        = GetComponent <AudioSource>();    //Gets the audio source
        Sound.volume = Volume;

        player        = GameObject.Find("Player");      //Finds the Object named "Player"
        Player        = player.GetComponent <Health>();
        HealthChecker = Player.Lives;
        SoulsChecker  = Player.AmountOfSouls;
        Scythe        = GameObject.FindGameObjectWithTag("Scythe").GetComponent <ScytheShoot>(); //Finds the Scyth object, and it's script.
    }