// Use this for initialization void Start() { rockFallScript = transform.parent.GetComponent <RockFall>(); if (rockFallScript == null) { rockFallEndGameScript = transform.parent.GetComponent <RockFallEndGame>(); } }
// Start is called before the first frame update void Start() { renderer = GetComponent <SpriteRenderer>(); cameraMove = FindObjectOfType <CameraMove>(); Audio = FindObjectOfType <AudioManager>(); player = FindObjectOfType <Player>(); trap = GetComponent <Trap>(); Rock = GetComponent <RockFall>(); }
// Use this for initialization void Start() { rockFallScript1 = rockGenerator1.GetComponent <RockFall>(); }