// Start is called before the first frame update void Start() { instance = this; //Default transform newPosition = transform.position; newRotation = transform.rotation; newZoom = cameraTransform.localPosition; }
void Start() { pc = GetComponent <PlayerController>(); rtscc = GetComponent <RTSCameraController>(); controlGroupPressed = false; isHoldingCtrl = false; isHoldingShift = false; startTimer = false; foreach (var unit in FindObjectsOfType <Unit>()) { everyUnit.Add(unit.gameObject); } }
// Start is called before the first frame update void Start() { cameraController = GetComponent <RTSCameraController>(); }
//private bool _keyboard1 = false; //private bool _keyboard2 = false; //private bool _keyboard3 = false; //private bool _keyboard4 = false; //private bool _keyboard5 = false; //private bool _keyboard6 = false; //private bool _keyboard7 = false; //private bool _keyboard8 = false; // Game initialization. void Start() { cameraController = _mainCamera.GetComponent<RTSCameraController>() as RTSCameraController; //_context = new Context(new IdleState()); Context.setState(new IdleState()); //Get the gameobjects placed using the Unity editor, and //add them to the object bank. initializeGame(); //unit = new ManAtArms(); //unit.instantiate(); //unit.rotateByAngle(-20); //ObjectBank.instance().addUnit(ref unit); }