private void Start() { jumping = GetComponent <AudioSource>(); GM = GameObject.FindWithTag("GameManager").GetComponent <GameManagerEndless>(); _rigidBody = GetComponent <Rigidbody2D>(); Anim = GetComponent <Animator>(); //soundCenter = GetComponent<PlayerSoundController>(); _upgradeCenter = UpgradeCenter.GetInstance(); }
// Use this for initialization void Awake() { GM = GameObject.FindWithTag("GameManager").GetComponent <GameManagerEndless>(); //platforms = new platformFloorPositions[generatedBlockHeigth]; // Generate(); }