//Code to declare the number of perspective positions // Use this for initialization void Start() { originalPosition = this.transform.position; cleanOriginalPosition = this.transform.position; movingPlatform = this.GetComponent <MovingPlatform> (); if (movingPlatform != null) { plusOriginalPosition = originalPosition + movingPlatform.negativeMoveVector; } playerGravity = GameObject.FindGameObjectWithTag("Player").GetComponent <GravityNew>(); }
// Use this for initialization void Start() { playerGravity = GameObject.FindGameObjectWithTag("Player").GetComponent <GravityNew>(); }
// Use this for initialization void Start() { gravity = this.GetComponent <GravityNew> (); }