コード例 #1
0
ファイル: Perspective.cs プロジェクト: mrm11008/ThesisProject
    //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>();
    }
コード例 #2
0
 // Use this for initialization
 void Start()
 {
     playerGravity = GameObject.FindGameObjectWithTag("Player").GetComponent <GravityNew>();
 }
コード例 #3
0
ファイル: Player.cs プロジェクト: mrm11008/ThesisProject
 // Use this for initialization
 void Start()
 {
     gravity = this.GetComponent <GravityNew> ();
 }