コード例 #1
0
 // Use this for initialization
 protected void Awake()
 {
     base.Awake();
     CurrentType   = GestureManager.GestureTypes.SwipingDown;
     specificEvent = onSwipeDownEvent;
     parent        = GameObject.Find("ParentSplashIn");
     waterSplash   = parent.transform.GetChild(0).gameObject;
     bubble        = waterSplash.transform.GetChild(0).gameObject;
     con           = bubble.GetComponent <SimpleRainBehaviour>();
     a             = bubble.GetComponent <AudioSource>();
 }
コード例 #2
0
 void OnEnable()
 {
     this.beh = (SimpleRainBehaviour)target;
 }