Example #1
0
    void Start()
    {
        target = targetRight;
        Score scr = StaticClass.CrossSceneInformation.GetComponent <Score>();

        scr.Activate();
    }
    // Start is called before the first frame update
    void Start()
    {
        startPoint = new Vector3(-4, -1, 0);
        endPoint   = new Vector3(4, 1, 0);

        rb = gameObject.GetComponent <Rigidbody2D>();
        Score scr = StaticClass.CrossSceneInformation.GetComponent <Score>();

        scr.Activate();
    }
Example #3
0
    // Start is called before the first frame update
    void Start()
    {
        levelScore = .0f;
        Score scr = StaticClass.CrossSceneInformation.GetComponent <Score>();

        scr.Activate();
        end            = false;
        timer          = 0.0f;
        Time.timeScale = 1f;
    }
 // Start is called before the first frame update
 void Start()
 {
     rb            = gameObject.GetComponent <Rigidbody2D>();
     current_speed = speed;
     scr           = StaticClass.CrossSceneInformation.GetComponent <Score>();
     scr.Activate();
     timer          = 0;
     Time.timeScale = 1f;
     lose           = false;
 }