// Start is called before the first frame update void Start() { speed = Random.Range(5f, 12f); if (FindObjectOfType <rewindManager>() != null) { manager = FindObjectOfType <rewindManager>(); } else if (FindObjectOfType <menuRewind>() != null) { managerMenu = FindObjectOfType <menuRewind>(); } }
// Start is called before the first frame update void Start() { anim = GetComponent <Animator>(); Rigid = GetComponent <Rigidbody2D>(); rewind = FindObjectOfType <rewindManager>(); if (hardMode) { Rigid.mass = 0.1f; } else { Rigid.mass = 0.25f; forceParent.gameObject.SetActive(false); } }
// Use this for initialization void Start() { manager = FindObjectOfType <rewindManager>(); pointsInTime = new List <PointInTime>(); rb = GetComponent <Rigidbody2D>(); }