Exemple #1
0
    // Use this for initialization
    void Start()
    {
        MeteorHandler = GameObject.Find("MeteorHandler");
        meteorScript  = MeteorHandler.GetComponent <MeteorAcceleration>();

        playerSpeed = playerMinSpeed;

        playerPosition = Camera.main.ScreenToWorldPoint(new Vector3(Screen.width / 18.0f, Screen.height / 2.0f, 10));
    }
Exemple #2
0
 void Start()
 {
     previousScore          = 0;
     MeteorHandler          = GameObject.Find("MeteorHandler");
     meteorScript           = MeteorHandler.GetComponent <MeteorAcceleration>();
     speedIncreaseIncrement = 0.02f;
     meteorFinishLine       = GameObject.Find("MeteorFinishLine");
     scoreScript            = meteorFinishLine.GetComponent <Score>();
 }