LoginSignup
7
8

More than 5 years have passed since last update.

[Tween] 昔良く見たフェードアウトする感じの敵の消滅エフェクト

Posted at

33a969bb14b99957e5df8608abd40308.png

NGUI使ってると入ってる奴
これをフェードアウトしたいオブジェクトにくっつける。

スタート押していきなりフェードアウトして欲しくないからアクティブを切る

再生したい時は


var tweenColor = sprite.GetComponent<TweenColor>();
tweenColor.Play (true);
tweenColor.ResetToBeginning ();

な感じのコードを書く

再生するとこんな感じになる
http://gyazo.com/ede50a727bdbc365f1544708a2ec9ac5

7
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
8