void Start() { // Debug.Log("straight distance : " + Vector2.Distance(rocket.transform.position, GameObject.FindGameObjectWithTag("FinishPlanet").transform.position)); gm = GameObject.FindGameObjectWithTag("GameManager").GetComponent <LvlEditorManager>(); rotatingPlatform = GameObject.FindGameObjectWithTag("RotatingPlatform"); timeSinceLaunch = 0; trajectory = GameObject.FindGameObjectWithTag("trajectory"); }
// Use this for initialization void Start() { rb = gameObject.GetComponent <Rigidbody2D>(); gm = GameObject.FindGameObjectWithTag("GameManager").GetComponent <LvlEditorManager>(); // levelsGenerator = Camera.main.GetComponent<LevelsGenerator>(); }