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