Esempio n. 1
0
 void Start()
 {
     spawner        = GameObject.Find("Spawner").GetComponent <MovementDetectionLibrary.SpawnGameObjects>();
     sSpawner       = GameObject.Find("Spawner").GetComponent <SushiSpawner>();
     gameM          = GameObject.Find("GameManager").GetComponent <GameManagerSushi>();
     explosionSound = GameObject.Find("cutFish").GetComponent <AudioSource>();
 }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     // determine when to spawn the next object
     //nextSpawnTime = Time.time+secondsBetweenSpawning;
     gameM = GameObject.Find("GameManager").GetComponent <GameManagerSushi>();
     if (gameM)
     {
         Debug.Log("Entra a mirar gms");
     }
 }
Esempio n. 3
0
    // setup the game
    void Start()
    {
        // set the current time to the startTime specified
        currentTime = startTime;

        // get a reference to the GameManager component for use by other scripts
        if (gms == null)
        {
            gms = this.gameObject.GetComponent <GameManagerSushi>();
        }

        // init scoreboard to 0
        mainScoreDisplay.text = "";

        if (countdownDisplayObject)
        {
            countdownDisplay = countdownDisplayObject.GetComponent <Text>();
        }


        spawner = GameObject.Find("Spawner").GetComponent <MovementDetectionLibrary.SpawnGameObjects>();

        if (FullBodyObject)
        {
            fBodyObject = FullBodyObject.GetComponent <MovementDetectionLibrary.FullBody>();
        }

        //Initialize angle values
        bestPartialLeftShoulderAngle  = 0.0f;
        bestTotalLeftShoulderAngle    = 0.0f;
        bestPartialRightShoulderAngle = 0.0f;
        bestTotalRightShoulderAngle   = 0.0f;

        //Initialize time values for final animation
        animEnded = false;
    }
Esempio n. 4
0
 void Start()
 {
     initialHeight = transform.position.y;
     spawner = GameObject.Find("Spawner").GetComponent<MovementDetectionLibrary.SpawnGameObjects>();
     gameM = GameObject.Find("GameManager").GetComponent<GameManagerSushi>();
 }