コード例 #1
0
ファイル: shuttle.cs プロジェクト: HiddenSignal/ShuttleEscape
    // Use this for initialization
    void Start()
    {
        //Sets the start distance to 0 for the purposes of proper score display
        gameStuffScript = GameObject.Find("Game Manager").GetComponent<gameStuff>();

        shuttlePos = transform.position;
        shuttleRot = transform.rotation;

        startDistance = transform.position.y;
    }
コード例 #2
0
 void Awake()
 {
     gameStuffScript = GetComponentInParent<gameStuff>();
 }