示例#1
0
    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);
    }
示例#2
0
 private DropdownMenuAction.Status GetLocationDropdownState(DebugPosition location)
 {
     return(location == currentLocationSelected ? DropdownMenuAction.Status.Checked : DropdownMenuAction.Status.Normal);
 }
示例#3
0
 private void OnLocationSelected(DebugPosition location)
 {
     currentLocationSelected = location;
     LocationDropdown.text   = location.LocationName;
 }