示例#1
0
    // Start is called before the first frame update
    void Start()
    {
        _rb = GetComponent <Rigidbody2D>();
        var gm = GameObject.FindGameObjectWithTag("Game manager");

        _platformSpawner      = gm.GetComponent <PlatformSpawner>();
        _scoreAndAchievements = gm.GetComponent <ScoreAndAchievements>();
    }