Esempio n. 1
0
 public BaseGameObject(GameObjectView obj, float maxHp, float speed, float pover, Fractions fraction)
 {
     Object        = obj;
     CurrentHp     = MaxHp = maxHp;
     Speed         = speed;
     Pover         = pover;
     Fraction      = fraction;
     obj.getDamage = GetDamage;
 }
Esempio n. 2
0
        private void OnTriggerEnter2D(Collider2D collision)
        {
            GameObjectView TriggerGameObjectView = collision.GetComponent <GameObjectView>();

            if (TriggerGameObjectView != null)
            {
                if (TriggerGameObjectView.fraction != fraction)
                {
                    GetDamage(TriggerGameObjectView.damagePover);
                }
            }
        }
Esempio n. 3
0
 public BaseGameObject(GameObjectView obj, float maxHp, float speed, float pover)
     : this(obj, maxHp, speed, pover, Fractions.Minor)
 {
 }
Esempio n. 4
0
 public BaseGameObject(GameObjectView obj, float maxHp, float speed)
     : this(obj, maxHp, speed, 0)
 {
 }
Esempio n. 5
0
 public BaseGameObject(GameObjectView obj, float maxHp)
     : this(obj, maxHp, 0)
 {
 }
Esempio n. 6
0
 public BaseGameObject(GameObjectView obj) : this(obj, 1)
 {
 }
Esempio n. 7
0
 public Player(GameObjectView obj, float maxHp, float speed, float pover)
     : base(obj, maxHp, speed, pover)
 {
     Fraction = Fractions.Player;
 }
Esempio n. 8
0
 public Player(GameObjectView obj, float maxHp) : base(obj, maxHp)
 {
     Fraction = Fractions.Player;
 }
Esempio n. 9
0
 public Player(GameObjectView obj) : base(obj)
 {
     Fraction = Fractions.Player;
 }