Exemplo n.º 1
0
 /// <summary>
 /// Complete Declaration for StandardMob
 /// </summary>
 /// <param name="x">X position in the world</param>
 /// <param name="y">Y position in the world</param>
 /// <param name="textureName">Name of the texture</param>
 /// <param name="type">AIType to use for the Mob</param>
 public StandardMob(float x, float y, int layer, Texture textureName, AIBase.AIType type, float width = 16, float height = 16) : base(x, y, layer, textureName, width, height)
 {
     mobAI = new AIBase(this)
     {
         type = type
     };
 }
Exemplo n.º 2
0
 public StandardMob(float x, float y, Texture textureName, AIBase.AIType type = AIBase.AIType.Passive) : base(x, y, textureName)
 {
     mobAI = new AIBase(this)
     {
         type = type
     };
 }
Exemplo n.º 3
0
        public static void showGeneralsArea(SimpleAIConfig gameConfig)
        {
            EditorGUILayout.BeginVertical("Box");

            EditorGUILayout.HelpBox(Language.alertGeneralIsGlobal(gameConfig.selectedLanguage), MessageType.Warning);

            EditorGUILayout.Space();

            Language.LangList tmpLang = (Language.LangList)EditorGUILayout.EnumPopup(Language.languageLabel(gameConfig.selectedLanguage), gameConfig.selectedLanguage);
            if (tmpLang != Language.LangList.select)
            {
                gameConfig.selectedLanguage = tmpLang;
            }

            //EditorUtility.DisplayDialog("Place Selection On Surface?", "Are you sure you want to place", "Place", "Do Not Place")
            AIBase.AIType AITypeTemp = (AIBase.AIType)EditorGUILayout.EnumPopup(Language.gameMovimentTypeLabel(gameConfig.selectedLanguage), gameConfig.AIType);
            if (AITypeTemp != AIBase.AIType.nothingSelected)
            {
                gameConfig.AIType = AITypeTemp;
            }

            gameConfig.groundingDistance = EditorGUILayout.Slider(new GUIContent(Language.groundVerifierLabel(gameConfig.selectedLanguage), iconLanding, Language.groundVerifierTooltip(gameConfig.selectedLanguage)), gameConfig.groundingDistance, 0.01f, 1);


            gameConfig.groundLayer = EditorTools.LayerMaskField(Language.groundLayerLabel(gameConfig.selectedLanguage), gameConfig.groundLayer);

            gameConfig.platformLayer = EditorTools.LayerMaskField(Language.platformLayerLabel(gameConfig.selectedLanguage), gameConfig.platformLayer);

            //TODO: Tradução
            EditorGUILayout.HelpBox("Layer onde pode estar qualquer objeto, parede e etc que pode interromper a visão do AI alem do chão.", MessageType.Info);
            gameConfig.obistacleLayer = EditorTools.LayerMaskField("Obstacles layer", gameConfig.obistacleLayer);

            EditorGUILayout.Space();
            EditorGUILayout.EndVertical();
        }