コード例 #1
0
 /// <summary>
 /// Stringify the character so it can be used "elsewhere".
 /// </summary>
 /// <param name="character">Character to stringify.</param>
 /// <returns>"Player" + character.ToString()</returns>
 public static new string smethod_0(PlayableCharacters character)
 {
     if (character == PlayableCharacters.Pilot)
     {
         return("PlayerRogue");
     }
     return("Player" + character.ToString());
 }
コード例 #2
0
        public static GameObject GetPlayerPrefab(PlayableCharacters character)
        {
            string resourceName;

            if (character == PlayableCharacters.Soldier)
            {
                resourceName = "marine";
            }
            else if (character == PlayableCharacters.Pilot)
            {
                resourceName = "rogue";
            }
            else
            {
                resourceName = character.ToString().ToLower();
            }

            return((GameObject)BraveResources.Load("player" + resourceName));
        }