private void OnReloadLocationPressed() { if (currentLocationSelected == null) { currentLocationSelected = GameObject.Find("DebugPositions").transform.GetChild(0).GetComponent <DebugPosition>(); } var Sield = GameObject.Find("Sield").transform; var Ganiel = GameObject.Find("Ganiel").transform; Sield.position = currentLocationSelected.Coordinates; Ganiel.GetComponent <Player>().DisableMovement(); Ganiel.position = Ganiel.GetComponent <Player>().GetTargetPosition(); Ganiel.rotation = Ganiel.GetComponent <Player>().GetTargetRotation(); Ganiel.GetComponent <Player>().EnableMovement(); Debug.Log(currentLocationSelected.LocationName); }
private DropdownMenuAction.Status GetLocationDropdownState(DebugPosition location) { return(location == currentLocationSelected ? DropdownMenuAction.Status.Checked : DropdownMenuAction.Status.Normal); }
private void OnLocationSelected(DebugPosition location) { currentLocationSelected = location; LocationDropdown.text = location.LocationName; }