예제 #1
0
        public virtual void Stop()
        {
            // Get rid of the object
            GameObject.Destroy(this.gameObject);

            // Remove any color effect we performed
            WeaponEffect.ResetBackgroundColor();
        }
예제 #2
0
        /// <summary>
        /// Instantiate a new instance of the WeaponEffect class using the supplied parameters
        /// </summary>
        /// <param name="instance">The instance to use as the base</param>
        /// <param name="target">The position that is being targeted</param>
        /// <returns>The new WeaponEffect</returns>
        public static WeaponEffect Create(WeaponEffect instance, Transform target)
        {
            WeaponEffect effect = Instantiate(instance);

            effect.target = target;

            return(effect);
        }