public virtual void Stop() { // Get rid of the object GameObject.Destroy(this.gameObject); // Remove any color effect we performed WeaponEffect.ResetBackgroundColor(); }
/// <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); }