Exemple #1
0
 public void GenerateSadako(int gencount)
 {
     for (int i = 0; i < gencount; i++)
     {
         int n = Random.Range(0, DeActiveElement.Count);
         //print("s"+n);
         //print("list"+DeActiveElement.Count);
         if (DeActiveElement.Count == 0)
         {
             break;
         }
         else
         {
             if (DeActiveElement[n] != null && canGen == true)
             {
                 Sadako sa = DeActiveElement[n];
                 DeActiveElement.Remove(sa);
                 ActiveElement.Add(sa);
             }
             else
             {
                 break;
             }
         }
     }
 }
Exemple #2
0
 public virtual void Initialize(Game1 gameReference, Player playerReference, Sadako sadakoReference, InventoryHandler inventoryHandler, LocationHandler locationHandler, EventHandler eventHandler, RoomDatabase roomDatabase, TileDatabase tileDatabase)
 {
     this.gameReference    = gameReference;
     this.playerReference  = playerReference;
     this.sadakoReference  = sadakoReference;
     this.inventoryHandler = inventoryHandler;
     this.locationHandler  = locationHandler;
     this.eventHandler     = eventHandler;
     this.tileDatabase     = tileDatabase;
     this.roomDatabase     = roomDatabase;
 }
Exemple #3
0
 public virtual void Initialize(Game1 gameReference, Player playerReference, Sadako sadakoReference, InventoryHandler inventoryHandler, LocationHandler locationHandler, EventHandler eventHandler, RoomDatabase roomDatabase, TileDatabase tileDatabase)
 {
     this.gameReference = gameReference;
     this.playerReference = playerReference;
     this.sadakoReference = sadakoReference;
     this.inventoryHandler = inventoryHandler;
     this.locationHandler = locationHandler;
     this.eventHandler = eventHandler;
     this.tileDatabase = tileDatabase;
     this.roomDatabase = roomDatabase;
 }
Exemple #4
0
    public void ResetSadako()
    {
        //if (ActiveElement.Count != 0)
        //{
        for (int i = 0; i < ActiveElement.Count; i++)
        {
            //if (ActiveElement.Count == 0)
            //{
            //    break;
            //}
            //else
            //{

            Sadako sa = ActiveElement[i];
            sa.Reset();
            sa.gameObject.transform.position = new Vector3(12f, sa.gameObject.transform.position.y, sa.gameObject.transform.position.z);
            ActiveElement.Remove(sa);
            DeActiveElement.Add(sa);
            //}
        }
        //}
    }
Exemple #5
0
 public override void Initialize(Game1 gameReference, Player playerReference, Sadako sadakoReference, InventoryHandler inventoryHandler, LocationHandler locationHandler, EventHandler eventHandler, RoomDatabase roomDatabase, TileDatabase tileDatabase)
 {
     base.Initialize(gameReference, playerReference, sadakoReference, inventoryHandler, locationHandler, eventHandler, roomDatabase, tileDatabase);
 }
 public override void Initialize(Game1 gameReference, Player playerReference, Sadako sadakoReference, InventoryHandler inventoryHandler, LocationHandler locationHandler, EventHandler eventHandler, RoomDatabase roomDatabase, TileDatabase tileDatabase)
 {
     base.Initialize(gameReference, playerReference, sadakoReference, inventoryHandler, locationHandler, eventHandler, roomDatabase, tileDatabase);
 }