//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>();
    }
Exemple #2
0
 // Use this for initialization
 void Start()
 {
     playerGravity = GameObject.FindGameObjectWithTag("Player").GetComponent <GravityNew>();
 }
Exemple #3
0
 // Use this for initialization
 void Start()
 {
     gravity = this.GetComponent <GravityNew> ();
 }