public void Start() { current = transform.position; moving = false; startY = transform.position.y; body = GetComponentInChildren <Rigidbody>(); mesh = GameObject.Find("Player/Mesh"); score = 0; gameStateController = GameObject.Find("GameStateController").GetComponent <GameStateControllerScript>(); }
public void Start() { current = transform.position; moving = false; startY = transform.position.y; body = GetComponentInChildren<Rigidbody>(); mesh = GameObject.Find("Player/Mesh"); score = 0; gameStateController = GameObject.Find("GameStateController").GetComponent<GameStateControllerScript>(); }