コード例 #1
0
        public override string ToString()
        {
            string output = string.Empty;

            output += "PlayerXPosition: " + PlayerXPosition.ToString("N3") + "\r\n";
            output += "PlayerYPosition: " + PlayerYPosition.ToString("N3") + "\r\n";
            output += "PlayerHeading: " + (PlayerHeading * (180 / Math.PI)).ToString("N3") + "\r\n";
            output += "IsInFarRange: " + IsInFarRange.ToString() + "\r\n";
            output += "IsInMediumRange: " + IsInMediumRange.ToString() + "\r\n";
            output += "IsInCloseRange: " + IsInCloseRange.ToString() + "\r\n";
            output += "PlayerHealth: " + PlayerHealth.ToString() + "\r\n";
            output += "MaxPlayerHealth: " + MaxPlayerHealth.ToString() + "\r\n";
            output += "PlayerHealthPercentage: " + PlayerHealthPercentage.ToString("N3") + "\r\n";
            output += "PlayerMana: " + PlayerMana.ToString() + "\r\n";
            output += "MaxPlayerMana: " + MaxPlayerMana.ToString() + "\r\n";
            output += "PlayerHasTarget: " + PlayerHasTarget.ToString() + "\r\n";
            output += "TargetHealth: " + TargetHealth.ToString() + "\r\n";
            output += "TargetMana: " + TargetMana.ToString() + "\r\n";
            output += "MaxTargetHealth: " + MaxTargetHealth.ToString() + "\r\n";
            output += "MaxTargetMana: " + MaxTargetMana.ToString() + "\r\n";
            output += "TargetHealthPercentage: " + TargetHealthPercentage.ToString("N3") + "\r\n";
            output += "SpellCanAttackTarget: " + SpellCanAttackTarget.ToString() + "\r\n";
            output += "CanAttackTarget: " + CanAttackTarget.ToString() + "\r\n";
            output += "PlayerInCombat: " + PlayerInCombat.ToString() + "\r\n";
            output += "TargetInCombat: " + TargetInCombat.ToString() + "\r\n";
            output += "IsTargetDead: " + IsTargetDead.ToString() + "\r\n";
            output += "IsTargetElite: " + IsTargetElite.ToString() + "\r\n";
            output += "Reaction: " + Reaction.ToString() + "\r\n";
            output += "PlayerLevel: " + PlayerLevel.ToString() + "\r\n";
            output += "TargetLevel: " + TargetLevel.ToString() + "\r\n";
            output += "IsTargetEnemy: " + IsTargetEnemy.ToString() + "\r\n";
            output += "TargetName: " + TargetName.ToString() + "\r\n";
            output += "TargetComboPoints: " + TargetComboPoints.ToString() + "\r\n";
            output += "PlayerActionError: " + PlayerActionError.ToString() + "\r\n";
            output += "PlayerIsAttacking: " + PlayerIsAttacking.ToString() + "\r\n";
            output += "AmmoCount: " + AmmoCount.ToString() + "\r\n";
            output += "IsTargetPlayer: " + IsTargetPlayer.ToString() + "\r\n";
            output += "Target Faction: " + TargetFaction.ToString() + "\r\n";
            output += "IsPlayerDead: " + IsPlayerDead.ToString() + "\r\n";
            output += "Start: " + Start.ToString() + "\r\n";
            output += "Found: " + Found.ToString() + "\r\n";
            output += "CanUseSkill: " + CanUseSkill.ToString() + "\r\n";
            output += "IsWowForeground: " + IsWowForeground.ToString() + "\r\n";
            output += "Class: " + Class.ToString() + "\r\n";
            output += "Casting: " + Casting.ToString() + "\r\n";
            output += "Shape: " + Shape.ToString() + "\r\n";
            output += "Buffs: " + Buffs.ToString() + "\r\n";
            output += "MouseOverTarget: " + MouseOverTarget.ToString() + "\r\n";
            output += "Whisper: " + Whisper.ToString() + "\r\n";
            output += "FreeBagSlots: " + FreeBagSlots.ToString() + "\r\n";

            return(output);
        }
コード例 #2
0
 // Start is called before the first frame update
 void Start()
 {
     scrollParent = scrollList.GetComponent <ScrollRect>();
     Debug.Log("Scroll parent null? " + scrollParent == null);
     text.text = classType.ToString();
 }
コード例 #3
0
    public void CreateCharacter()
    {
        PlayerUIPanels.instance.AddPlayer(playerIndex);

        Player newPlayer = new Player(Instantiate(Resources.Load("Prototypes/Entity/Player/PlayerPrototype") as PlayerPrototype), Resources.Load <PlayerClass>("Prototypes/Player/Classes/" + classType.ToString()), playerIndex);

        newPlayer.entityName = characterName;
        newPlayer.SetColorPalette(preview.characterColors);


        newPlayer.SetInput(gamepadInput);
        newPlayer.playerPanel = PlayerUIPanels.instance.playerPanels[playerIndex];
        CrewManager.instance.AddPlayer(playerIndex, newPlayer);
        Close();
    }