private void Start() { spawnPoint = GameObject.Find("SpawnPoint"); cloneMachineAnim = GameObject.Find("CloneMachine").GetComponent <Animator>(); controller = GetComponent <ICloneController>(); camController = GameObject.Find("Main Camera").GetComponent <CameraController>(); StartCoroutine(Spawner()); }
public void Start() { progressText = GameObject.Find("ProgressText").GetComponent <Text>(); requiredText = GameObject.Find("RequiredText").GetComponent <Text>(); progressTextAnim = GameObject.Find("ProgressDisplay").GetComponent <Animator>(); completedPopupAnim = GameObject.Find("LevelCompletedPopup").GetComponent <Animator>(); controller = GetComponent <ICloneController>(); timeStarTransform = (RectTransform)GameObject.Find("TimeStarMask").GetComponent <Transform>(); timeStarStartHeight = timeStarTransform.sizeDelta.y; progressText.text = "0"; requiredText.text = " / " + requiredClones; }
public CloneDialog(IGitRepositoryProvider gitRepositoryProvider) { Verify.Argument.IsNotNull(gitRepositoryProvider, "gitRepositoryProvider"); _gitRepositoryProvider = gitRepositoryProvider; InitializeComponent(); Localize(); var inputs = new IUserInputSource[] { _urlInput = new TextBoxInputSource(_txtUrl), _repositoryPathInput = new RepositoryPathInput(_txtPath, _txtUrl, _chkAppendRepositoryNameFromUrl), _remoteNameInput = new TextBoxInputSource(_txtRemoteName), _shallowCloneInput = new CheckBoxInputSource(_chkShallowClone), _depthInput = new NumericUpDownInputSource <int>(_numDepth, value => (int)value, value => value), _useTemplateInput = new CheckBoxInputSource(_chkUseTemplate), _templatePathInput = new TextBoxInputSource(_txtTemplate), _bareInput = new CheckBoxInputSource(_chkBare), _mirrorInput = new CheckBoxInputSource(_chkMirror), _noCheckoutInput = new CheckBoxInputSource(_chkNoCheckout), _recursiveInput = new CheckBoxInputSource(_chkRecursive), }; _errorNotifier = new UserInputErrorNotifier(NotificationService, inputs); _repositoryPathInput.ValueChanged += (s, e) => UpdateTargetPathText(); UpdateTargetPathText(); GitterApplication.FontManager.InputFont.Apply(_txtUrl, _txtPath, _txtRemoteName); _controller = new CloneController(gitRepositoryProvider) { View = this }; }
public void SetController(ICloneController contr) { controller = contr; }