示例#1
0
    private void Awake()
    {
        m_Rigidbody = GetComponent <Rigidbody>();
        recorder    = GetComponent <CameraRecorder>();
        backend     = GetComponent <BackendConnection>();
        freezer     = GetComponent <Freezer>();

        freezer.freeze = true; // freeze in space (undeployed)

        // Set up the axes
        m_MovementAxisName = "Vertical";
        m_TurnAxisName     = "Horizontal";
    }
示例#2
0
        private void NewConnectionClick(object sender, RoutedEventArgs e)
        {
            Connection = new BackendConnection
            {
                Name = "(untitled)"
            };

            ConnectionIndex = -1;
            NotifyPropertyChanged("Connection");

            Connections.Add(Connection);
            NotifyPropertyChanged("Connections");

            ConnectionsList.SelectedItem = Connection;
            NotifyPropertyChanged("IsSelected");
        }
示例#3
0
 // Start is called before the first frame update
 void Start()
 {
     backend  = rover.GetComponent <BackendConnection>();
     movement = rover.GetComponent <TankMovement>();
 }
示例#4
0
 private void Start()
 {
     movement = GetComponent <TankMovement>();
     backend  = GetComponent <BackendConnection>();
 }