void Start() { myMapGenerator = MapGenerator.GetComponent <MapGenerator>(); myNightDayCircel = NightDayCircel.GetComponent <NightDayCircel>(); Char = GameObject.Find("Charakter"); myPlayerbars = Char.GetComponent <Playerbars>(); /* * Scene scene = SceneManager.GetActiveScene(); * if (scene.name == "Game") * { * Charakter = GameObject.Find("Charakter"); * myPlayerbars = Charakter.GetComponent<Playerbars>(); * } * * List<string> Names = new List<string>(); * List<float> PosX = new List<float>(); * List<float> PosY = new List<float>(); * List<float> PosZ = new List<float>(); * List<string> Nameparent = new List<string>(); * List<string> Child = new List<string>(); */ }
// Use this for initialization void Start() { Camera = GameObject.Find("Main Camera"); NightDay = Camera.transform.GetChild(0).gameObject; myNightDayCircel = NightDay.GetComponent <NightDayCircel>(); Charakter = GameObject.Find("Charakter"); myCtrl = Charakter.GetComponent <Ctrl>(); Direction(); animator = GetComponent <Animator>(); //*****************************************************************// // HIER Tierleben EINFÜGEN // //*****************************************************************// health = new Dictionary <string, int>(); health.Add("Crawler", 50); health.Add("Grashopper", 50); health.Add("Squirrel", 50); health.Add("Opossum", 70); health.Add("Rabbit", 80); health.Add("Chicken", 90); health.Add("Fox", 100); health.Add("Deer", 150); health.Add("Alpaca", 150); health.Add("Wolve", 200); health.Add("Bear", 300); // Start Leben setzen currentHealth = health[this.name]; // Start Hunger setzen currentHunger = Random.Range(25, 100); //*****************************************************************// // HIER Tierschaden EINFÜGEN // //*****************************************************************// animaldamage = new Dictionary <string, int>(); animaldamage.Add("Crawler", 2); animaldamage.Add("Grashopper", 2); animaldamage.Add("Opossum", 5); animaldamage.Add("Chicken", 5); animaldamage.Add("Rabbit", 5); animaldamage.Add("Squirrel", 5); animaldamage.Add("Fox", 10); animaldamage.Add("Deer", 15); animaldamage.Add("Alpaca", 15); animaldamage.Add("Wolve", 20); animaldamage.Add("Bear", 30); //*****************************************************************// // HIER Felldrop EINFÜGEN // //*****************************************************************// Hidedrop = new Dictionary <string, int>(); Hidedrop.Add("Fox", 1); Hidedrop.Add("Deer", 2); Hidedrop.Add("Bear", 5); Hidedrop.Add("Chicken", 0); Hidedrop.Add("Rabbit", 1); Hidedrop.Add("Squirrel", 1); Hidedrop.Add("Wolve", 3); //*****************************************************************// // HIER Fleischdrop EINFÜGEN // //*****************************************************************// Meatdrop = new Dictionary <string, int>(); Meatdrop.Add("Fox", 1); Meatdrop.Add("Deer", 2); Meatdrop.Add("Chicken", 1); Meatdrop.Add("Bear", 5); Meatdrop.Add("Rabbit", 1); Meatdrop.Add("Grashopper", 1); Meatdrop.Add("Opossum", 1); Meatdrop.Add("Squirrel", 1); Meatdrop.Add("Wolve", 3); Meatdrop.Add("Alpaca", 2); //*****************************************************************// // HIER Federdrop EINFÜGEN // //*****************************************************************// Featherdrop = new Dictionary <string, int>(); Featherdrop.Add("Chicken", 1); //*****************************************************************// // HIER Linendrop EINFÜGEN // //*****************************************************************// Linendrop = new Dictionary <string, int>(); Linendrop.Add("Crawler", 1); //*****************************************************************// // HIER Eggdrop EINFÜGEN // //*****************************************************************// Eggdrop = new Dictionary <string, int>(); Eggdrop.Add("Chicken", 1); //*****************************************************************// // HIER Wooldrop EINFÜGEN // //*****************************************************************// Wooldrop = new Dictionary <string, int>(); Wooldrop.Add("Alpaca", 3); }