Exemple #1
0
        /// <summary>
        /// Whether or not the object is a directional fling flower.
        /// </summary>
        /// <returns>True if the object is a directional fling flower.</returns>
        public bool IsDirectionalFlingFlower(GameObject obj)
        {
            FlingFlower flower = obj.GetComponentInChildren <DirectionalFlingFlower>();

            if (flower != null)
            {
                player.FlingFlowerGuide.SetFlingFlower(flower);
                return(true);
            }
            return(false);
        }
 /// <summary>
 /// Set currently active fling flower.
 /// </summary>
 /// <param name="flower">The flower.</param>
 public void SetFlingFlower(FlingFlower flower)
 {
     currentFlingFlower = flower;
 }