예제 #1
0
    // =============================================================== initialization
    // Use this for initialization
    void Start()
    {
        _defenseLevel     = DefenseLevel.Undefended;
        _survivors        = new Survivor[100];
        _images           = new GameObject[100];
        _evictedSurvivors = new Survivor[10];

        _storage             = new Stores(this);
        _numSurvivors        = 0;
        _numEvictedSurvivors = 0;
        _numPeople           = 0;
    }
예제 #2
0
 public void TakeDamage(AttackLevel Attack, DefenseLevel Defense)
 {
     if (System.Convert.ToInt32(Defense) > System.Convert.ToInt32(Attack))
     {
     }
     else
     {
         if (Attack == AttackLevel.InstaDeath)
         {
             _OnDeath();
         }
         else
         {
             _OnDamage();
         }
     }
 }