Ejemplo 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);
        }
Ejemplo 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);
        }
Ejemplo n.º 3
0
 public void RemoveCultist(Cultist _cultist)
 {
     cultists.Remove(_cultist);
     debug.Log(_cultist + " removed from the Cult's list.", DebugInstance.Importance.Lesser);
 }
Ejemplo n.º 4
0
 public void AddCultist(Cultist _cultist)
 {
     cultists.Add(_cultist);
     debug.Log(_cultist + " added to the Cult's list.", DebugInstance.Importance.Lesser);
 }
Ejemplo n.º 5
0
 public void SetCultist(Cultist _cultist)
 {
     //photo.sprite = _cultist.spriteIndex;
     descriptionField.text = _cultist.cultistName + ", " + _cultist.age + ".";
 }
Ejemplo n.º 6
0
 public void Init(Cultist _cultist)
 {
     cultist = _cultist;
 }