private void Awake() { orbitsSpace = GetComponentInParent <Space>(); bloodTrailParticles = GetComponentInChildren <ParticleSystem>(); rigidBody = GetComponent <Rigidbody2D>(); spaceGameManager = FindObjectOfType <SpaceGameManager>(); }
public void Start() { if (instance) { Debug.LogWarning("More than one space game manager"); return; } instance = this; }