Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        timer = gameObject.AddComponent <Timer> ();

        timer.Duration = ConfigurationUtils.BallLifeTime;
        timer.Run();
        ballSpawn = Camera.main.GetComponent <BallSpawner>();

        rb2d = GetComponent <Rigidbody2D> ();
        EventManager.AddBallInvoker(this);
        EventManager.AddSpawnInvoker(this);
        EventManager.AddListersToSpeed(speedup);
    }