Beispiel #1
0
 /// <summary>
 /// 上昇開始させる
 /// </summary>
 public void StartRising()
 {
     //テキストを表示する
     this.textComponent.color = new Color(this.firstRGB.x, this.firstRGB.y, this.firstRGB.z, 1);
     this.currentAlpha        = 1.0f;
     //初期座標に
     this.transform.position = firstPosition;
     this.currentState       = FadeUpState.RISING;
 }
Beispiel #2
0
    // Start is called before the first frame update
    void Start()
    {
        this.textComponent = GetComponent <Text>();

        //初期位置の記憶
        this.firstPosition = transform.position;
        //色の記憶
        this.firstRGB = new Vector3(this.textComponent.color.r, this.textComponent.color.g, this.textComponent.color.b);

        //最初は非表示
        this.textComponent.color = new Color(1, 1, 1, 0);
        this.currentState        = FadeUpState.DISAPPER;
    }
Beispiel #3
0
 /// <summary>
 /// テキストを非表示する
 /// </summary>
 public void Disapper()
 {
     this.textComponent.color = new Color(1, 1, 1, 0);
     this.currentState        = FadeUpState.DISAPPER;
 }