Beispiel #1
0
 //Constructors
 public Bear()
 {
     furColour     = "Blue";
     weightInKilos = 150;
     ageInYears    = 3;
     flavour       = BearType.Gummy;
     name          = "Bearisa";
 }
Beispiel #2
0
 public Bear(string furColour, float weightInKilos, int ageInYears, BearType flavour, string name)
 {
     this.furColour     = furColour;
     this.weightInKilos = weightInKilos;
     this.ageInYears    = ageInYears;
     this.flavour       = flavour;
     this.name          = name;
 }
Beispiel #3
0
        public Bear CustomBear()
        {
            int      n           = rand.Next(names.Length);
            int      c           = rand.Next(colours.Length);
            int      weight      = rand.Next(1, 451);
            int      age         = rand.Next(1, 6);
            string   randName    = names[n];
            string   randColour  = colours[c];
            BearType flavourType = (BearType)(rand.Next(9));

            //string[] flavour = Enum.GetNames(typeof(BearType));
            //int f = rand.Next(flavour.Length);
            //string randFlavour = flavour[f];
            return(new Bear(randColour, weight, age, flavourType, randName));
        }
Beispiel #4
0
 // Use this for initialization
 void Start()
 {
     _bearType      = (BearType)(CharacterPrefs.PlayerBear);
     _coolDownTimer = 0;
 }