Exemplo n.º 1
0
 // if no value for variables, use "" or equivalent
 public MedicalEvent(int eType, string eTitle, int y, int m, int d, GameController.gameState gState, Vector3 location, string note, string drugsAdm, string imgPath)
 {
     type  = (eventType)eType;
     title = eTitle;
     date  = new System.DateTime(y, m, d);
     state = gState;
     //site = GetSiteVector(place);
     SetSiteString();
     specificLocation = location;
     notes            = note;
     drugs            = drugsAdm;
     imagePath        = imgPath;
     if (imagePath != null)
     {
         imgSprite = Resources.Load <Sprite>(imagePath);
     }
 }
Exemplo n.º 2
0
    //////////////////////////////////////////////////////////////////////////////////////////////

    // Setters
    public void SetGameState(GameController.gameState gs)
    {
        this.state = gs;
    }