// 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>(); }
void OnEnable() { this.beh = (SimpleRainBehaviour)target; }