private bool canJumpDown = false; // Determines if the player is allowed to jump down. // Use this for initialization. void Start() { // Setting up references. player = GameObject.FindGameObjectWithTag("Player"); playerScript = player.GetComponent <Player>(); platform = GetComponentInParent <PlatformJumpThrough>(); }
private bool canJumpDown = false; // Determines if the player is allowed to jump down. // Use this for initialization. void Start() { // Setting up references. player = GameObject.FindGameObjectWithTag("Player"); playerScript = player.GetComponent<Player>(); platform = GetComponentInParent<PlatformJumpThrough>(); }
private PlatformJumpThrough platform; // The platform's main script. // Use this for initialization. void Start() { // Setting up references. platform = GetComponentInParent <PlatformJumpThrough>(); }
private PlatformJumpThrough platform; // The platform's main script. // Use this for initialization. void Start() { // Setting up references. platform = GetComponentInParent<PlatformJumpThrough>(); }