// Use this for initialization
 void Start()
 {
     _controlServices = GetComponent <ControlServices>();
     origCOM          = GetComponent <Rigidbody>().centerOfMass;
     GetComponent <Rigidbody>().centerOfMass = GetComponent <Rigidbody>().centerOfMass;// -new Vector3(0, 1, 0);
     origCOM             = GetComponent <Rigidbody>().centerOfMass;
     _currentThurstLevel = ForwardThrust;
 }
Esempio n. 2
0
    void Start()
    {
        _controlServices = GetComponent <ControlServices>();
        _cam             = _controlServices.ControlledCamera;

        _lastOrbitDistance = (_minimumFollowingDistance + _maximumFollowingDistance) * 0.5f;
        GameState.Instance.OnPauseLevelChanged += new PauseLevelChanged(Instance_OnPauseLevelChanged);

        OnAcquiredControl();
    }
Esempio n. 3
0
    void Awake()
    {
        _layerMask          = new LayerMask();
        _layerMask          = 1 << LayerMask.NameToLayer("GrabbableObject");
        _controlServices    = GetComponent <ControlServices>();
        _cameraController   = _controlServices.ControlledCamera;
        _holdObjectFunction = GetComponent <HoldObjectFunction>();

        _state = ImpulseGunState.Idle;

        GameContext.Instance.Player.ImpulseBeamTool = this;
    }
Esempio n. 4
0
 void Awake()
 {
     _controlServices = GetComponent <ControlServices>();
 }
 void Awake()
 {
     _controlServices = GetComponent <ControlServices>();
     GameState.Instance.OnPauseLevelChanged += new PauseLevelChanged(Instance_OnPauseLevelChanged);
 }
Esempio n. 6
0
 void Awake()
 {
     _controlServices  = GetComponent <ControlServices>();
     _cameraController = _controlServices.ControlledCamera;
 }
Esempio n. 7
0
 void Start()
 {
     //MetablastUI.Instance.HudView.ScanButtonPressed += (HudView_ScanButtonPressed);
     _controlServices = GetComponent <ControlServices>();
 }