public Engine() { this.foodFactory = new FoodFactory(); this.felineFactory = new FelineFactory(); this.mammalFactory = new MammalFactory(); this.birdsFactory = new BirdsFactory(); this.animals = new List <IAnimal> { }; }
// Use this for initialization void Start () { // collider = GetComponent<BoxCollider2D> (); // collider.size = new Vector2 (Screen.width, Screen.height); birdsfactory = BirdsFactory.Instance; guiManager = GUIManager.Instance; handInputManager = HandInputManager.Instance; audioManager = AudioManager.Instance; birdsfactory.produceBirds(f_speedAdd, 1); handInputManager.handMotionDetected += new HandMotionDetectedEventHandler (onHandMotionDetected); i_healthPoints = GlobalVariables.I_MAX_HEALTH_POINTS; }
void Awake() { GO_KINECT_PREFAB = go_KinectPrefab; GO_GUI_MANAGER = go_guiManager; GO_HAND_INPUT_MANAGER = go_handInputManager; GO_AUDIO_MANAGER = go_audioManager; GO_BIRD = go_bird; GO_BIRDS_FACTORY = go_birdsFactory; I_DEPTH_PRODUCE_BIRD = i_depthProduceBird; F_MAX_SPEED_BIRD_AXIS_Z = f_maxSpeedBirdAxisZ; I_MAX_HEALTH_POINTS = i_maxHealthPoints; }