Esempio n. 1
0
        public Cultist CreateRandomCultist()
        {
            int    sprite      = Random.Range(0, settings.cultistThumbnails.Length);
            string cultistName = settings.cultistNames[Random.Range(0, settings.cultistNames.Length)];

            Cultist result = data.CreateCultist(cultistName, sprite);

            return(result);
        }
Esempio n. 2
0
        public Cultist CreateCultist(string _name, int _sprite)
        {
            Cultist result = new Cultist(idIndex, _name, _sprite);

            idIndex++;

            debug.Log(result + " created.", DebugInstance.Importance.Lesser);

            return(result);
        }
Esempio n. 3
0
 public void RemoveCultist(Cultist _cultist)
 {
     cultists.Remove(_cultist);
     debug.Log(_cultist + " removed from the Cult's list.", DebugInstance.Importance.Lesser);
 }
Esempio n. 4
0
 public void AddCultist(Cultist _cultist)
 {
     cultists.Add(_cultist);
     debug.Log(_cultist + " added to the Cult's list.", DebugInstance.Importance.Lesser);
 }
 public void SetCultist(Cultist _cultist)
 {
     //photo.sprite = _cultist.spriteIndex;
     descriptionField.text = _cultist.cultistName + ", " + _cultist.age + ".";
 }
Esempio n. 6
0
 public void Init(Cultist _cultist)
 {
     cultist = _cultist;
 }