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>();
 }
    void Start()
    {
        spawner  = GameObject.Find("Spawner").GetComponent <MovementDetectionLibrary.SpawnGameObjects>();
        sSpawner = GameObject.Find("Spawner").GetComponent <SpawnGameObjectsBall>();
        gameM    = GameObject.Find("GameManager").GetComponent <GameManagerAtrapalo>();
        if (scoreAmount > 0)
        {
            textPoint.text = "+" + scoreAmount.ToString();
        }
        else
        {
            textPoint.text = scoreAmount.ToString();
        }

        textPoint.color = getColorBall(scoreAmount);
    }
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>();
 }