Hey ich bin ja seid gestern(18.06.2014) hier und habe mich auch schon gut zurecht gefunden... Schönes Forum und Nette Community
Ich Programmiere ja auch etwas C# und habe mich dann mal etwas eingelesen in die Daten von The Forest und habe dann Dateien wie CarGUI.cs und CarUserControl.cs gefunden was vermuten lässt das man Fahrzeuge bekommen kann. Ob gecraftet oder gebaut weiß ich noch nicht.
CarUserControl.cs:
Spoiler anzeigen
CarGUI.cs:
Spoiler anzeigen
Ebenfalls ist auch der Chat und das beklettern der Bäume eingebaut aber nicht aktiviert... Ich werde noch etwas weiter suchen und mal gucken ob man diese Features manuell aktivieren kann.
Ich Programmiere ja auch etwas C# und habe mich dann mal etwas eingelesen in die Daten von The Forest und habe dann Dateien wie CarGUI.cs und CarUserControl.cs gefunden was vermuten lässt das man Fahrzeuge bekommen kann. Ob gecraftet oder gebaut weiß ich noch nicht.
CarUserControl.cs:
Quellcode
- using UnityEngine;
- [RequireComponent(typeof (CarController))]
- public class CarUserControl : MonoBehaviour
- {
- private CarController car;
- private void Awake()
- {
- this.car = this.GetComponent<CarController>();
- }
- private void FixedUpdate()
- {
- this.car.Move(CrossPlatformInput.GetAxis("Horizontal"), CrossPlatformInput.GetAxis("Vertical"));
- }
- }
CarGUI.cs:
Quellcode
- using System;
- using UnityEngine;
- [RequireComponent(typeof (GUIText))]
- public class CarGUI : MonoBehaviour
- {
- private string display = "{0:0} mph \nGear: {1:0}/{2:0}\nRevs {3:0%}\nThrottle: {4:0%}\n";
- private const float MphtoMps = 2.237f;
- public CarController car;
- private void Update()
- {
- object[] objArray = new object[5];
- int index1 = 0;
- // ISSUE: variable of a boxed type
- __Boxed<float> local1 = (ValueType) (float) ((double) this.car.CurrentSpeed * 2.23699998855591);
- objArray[index1] = (object) local1;
- int index2 = 1;
- // ISSUE: variable of a boxed type
- __Boxed<int> local2 = (ValueType) (this.car.GearNum + 1);
- objArray[index2] = (object) local2;
- int index3 = 2;
- // ISSUE: variable of a boxed type
- __Boxed<int> local3 = (ValueType) this.car.NumGears;
- objArray[index3] = (object) local3;
- int index4 = 3;
- // ISSUE: variable of a boxed type
- __Boxed<float> local4 = (ValueType) this.car.RevsFactor;
- objArray[index4] = (object) local4;
- int index5 = 4;
- // ISSUE: variable of a boxed type
- __Boxed<float> local5 = (ValueType) this.car.AccelInput;
- objArray[index5] = (object) local5;
- this.guiText.text = string.Format(this.display, objArray);
- }
- }
Ebenfalls ist auch der Chat und das beklettern der Bäume eingebaut aber nicht aktiviert... Ich werde noch etwas weiter suchen und mal gucken ob man diese Features manuell aktivieren kann.