예제 #1
0
        void Start()
        {
            stateInput = new HenStateInput(this);
            state      = new HenIdleState(stateInput);



            //reinitialize these only if they were not already assigned by the spawner
            if (henName == null)
            {
                henName = "Hen McHenface";
            }
            if (love == null)
            {
                love = new Stat(this, 0, Resources.Load <GameObject>("Prefabs/SpeedIncrease"));
            }
            if (size == null)
            {
                size = new Stat(this, 0, Resources.Load <GameObject>("Prefabs/SpeedIncrease"));
            }
            if (fitness == null)
            {
                fitness = new Stat(this, 0, Resources.Load <GameObject>("Prefabs/SpeedIncrease"));
            }
            if (featherQuality == null)
            {
                featherQuality = new Stat(this, 0, Resources.Load <GameObject>("Prefabs/SpeedIncrease"));
            }

            SetMaterial();
            cluckTimer = Random.Range(1f, 8f);
        }
예제 #2
0
        void Start()
        {
            stateInput = new HenStateInput(this);
            state      = new HenIdleState(stateInput);

            breed = HenBreed.RedStar;
            speed = new Stat(this, 0, Resources.Load <GameObject>("Prefabs/SpeedIncrease"));

            StartCoroutine(wander());
        }
예제 #3
0
 public HenState(HenStateInput input)
 {
     this.input = input;
     startTime  = Time.time;
     runOnce();
 }
예제 #4
0
 public HenExerciseState(HenStateInput input) : base(input)
 {
 }
예제 #5
0
 public HenIdleState(HenStateInput input) : base(input)
 {
 }
예제 #6
0
 public HenSeekFoodState(HenStateInput input) : base(input)
 {
 }
예제 #7
0
 public HenBatheState(HenStateInput input) : base(input)
 {
 }