Example #1
0
        public TempEffect(TempEffectType type, GameObject gameObject, float duration, Vector3 position, Vector3 destination)
        {
            this.gameObject = gameObject;

            this.effectType  = type;
            this.duration    = duration;
            this.lifeTimer   = 0;
            this.position    = position;
            this.destination = destination;
            this.isExpired   = false;

            gameObject.transform.position = position;
        }
Example #2
0
        public TempEffect(TempEffectType type, GameObject gameObject, float duration, Vector3 position, Vector3 destination)
        {
            this.gameObject = gameObject;
        
            this.effectType = type;
            this.duration = duration;
            this.lifeTimer = 0;
            this.position = position;
            this.destination = destination;
            this.isExpired = false;

            gameObject.transform.position = position;
        }
Example #3
0
    private void AddEffect(TempEffectType type, float duration, Vector3 pos, Vector3 dest, GameObject gameObject)
    {
        TempEffect te = new TempEffect(type, gameObject, duration, pos, dest);

        tempEffectList.Add(te);
    }
        private void AddEffect(TempEffectType type, float duration, Vector3 pos, Vector3 dest, GameObject gameObject)
        {
            TempEffect te = new TempEffect(type, gameObject, duration, pos, dest);

            tempEffectList.Add(te);
        }
Example #5
0
 public SpriteTempEffect(TempEffectType type, GameObject gameObject, float duration, Vector3 position, Vector3 destination, string particleSetName, string spriteSetName, int spriteSetIndex)
     : base(type, gameObject, duration, position, destination)
 {
     this.spriteSetName  = spriteSetName;
     this.spriteSetIndex = spriteSetIndex;
 }
Example #6
0
 public ParticleTempEffect(TempEffectType type, GameObject gameObject, float duration, Vector3 position, Vector3 destination, string particleSetName)
     : base(type, gameObject, duration, position, destination)
 {
     this.particleSetName = particleSetName;
 }
Example #7
0
 public TextTempEffect(TempEffectType type, GameObject gameObject, float duration, Vector3 position, Vector3 destination, string particleSetName, string text)
     : base(type, gameObject, duration, position, destination)
 {
     this.text = text;
 }
Example #8
0
 public TextTempEffect(TempEffectType type, GameObject gameObject, float duration, Vector3 position, Vector3 destination, string particleSetName, string text)
     : base(type, gameObject, duration, position, destination)
 {
     this.text = text;
 }
Example #9
0
 public SpriteTempEffect(TempEffectType type, GameObject gameObject, float duration, Vector3 position, Vector3 destination, string particleSetName, string spriteSetName, int spriteSetIndex)
     : base(type, gameObject, duration, position, destination)
 {
     this.spriteSetName = spriteSetName;
     this.spriteSetIndex = spriteSetIndex;
 }
Example #10
0
 public ParticleTempEffect(TempEffectType type, GameObject gameObject, float duration, Vector3 position, Vector3 destination, string particleSetName)
     : base (type,gameObject, duration,position,destination)
 {
     this.particleSetName = particleSetName;
   
 }