Beispiel #1
0
 void Start()
 {
     w          = waterfall.Get();
     obj        = transform.GetChild(0);
     ps         = obj.gameObject.GetComponent <ParticleSystem>();
     swordSound = GameObject.Find("SwordSound").GetComponent <AudioSource>();
 }
Beispiel #2
0
 waterfall()
 {
     w = this;
 }
 void Start()
 {
     anim       = GetComponent <Animator>();
     anim.speed = 0;
     instance   = this;
 }