Beispiel #1
0
    void Start()
    {
        // スクロール停止位置を取得.
        this.stopPositionY = this.uiStaffRoll.GetComponent <RectTransform>().localPosition.y;

        // メッセージを初期表示位置に移動.
        Vector3 tmpPosition = this.uiStaffRoll.GetComponent <RectTransform>().localPosition;

        this.uiStaffRoll.GetComponent <RectTransform>().localPosition = new Vector3(tmpPosition.x, this.startPosition, tmpPosition.z);

        this.endingSpace = GameObject.Find("EndingSpace").GetComponent <OpeningSpaceController>();
    }
Beispiel #2
0
    void Start()
    {
        // 获取停止滚动的位置

        this.stopPositionY = this.uiStaffRoll.GetComponent <RectTransform>().localPosition.y;

        // 移动消息到初始显示的位置
        Vector3 tmpPosition = this.uiStaffRoll.GetComponent <RectTransform>().localPosition;

        this.uiStaffRoll.GetComponent <RectTransform>().localPosition = new Vector3(tmpPosition.x, this.startPosition, tmpPosition.z);

        this.endingSpace = GameObject.Find("EndingSpace").GetComponent <OpeningSpaceController>();
    }