Esempio n. 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;
        }
Esempio n. 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;
        }
Esempio n. 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);
        }
Esempio n. 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;
 }
Esempio n. 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;
 }
Esempio n. 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;
 }
Esempio n. 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;
 }
Esempio n. 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;
 }
Esempio n. 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;
   
 }