Skip to content

Instantly share code, notes, and snippets.

View pedrobacchini's full-sized avatar
🎯
Focusing

Pedro Bacchini pedrobacchini

🎯
Focusing
View GitHub Profile
Buscando erros nos logs DMS:
"]E:"
@pedrobacchini
pedrobacchini / docker-compose-keycloak.yml
Created July 15, 2022 18:05
Docker compose basico para subir o keycloak com mysql
version: '3.9'
services:
mysql-kc:
platform: linux/x86_64
image: mysql:8.0.27
ports:
- 3366:3306
restart: unless-stopped
background yes
use_xft yes
xftfont 123:size=8
xftalpha 0.1
update_interval 0.3
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent no
own_window_class conky-semi
using UnityEngine;
namespace Heroes
{
[CreateAssetMenu(fileName = "New Hero Heal Movement", menuName = "Hero/Hero Heal Movement")]
public class HealHeroMovementType : HeroMovementType
{
private static readonly int Heal = Animator.StringToHash("Heal");
public override int ApplyHeroMovement(EggsStats egg, float currentAmount)
{
using UnityEngine;
namespace Heroes
{
[CreateAssetMenu(fileName = "New Hero Attack Movement", menuName = "Hero/Hero Attack Movement")]
public class AttackHeroMovementType : HeroMovementType
{
private static readonly int Attack = Animator.StringToHash("Attack");
public override int ApplyHeroMovement(EggsStats egg, float currentAmount)
using Sirenix.OdinInspector;
using UnityEngine;
namespace Heroes
{
public abstract class HeroMovementType : ScriptableObject
{
[BoxGroup("UI")] [SerializeField] private Sprite m_movementTypeSprite = null;
public Sprite MovementTypeSprite => m_movementTypeSprite;
[BoxGroup("UI")] [SerializeField] private Sprite m_movementTypeBg = null;
namespace Heroes
{
[System.Serializable]
public class HeroMovement
{
public HeroMovementType heroMovementType;
public int times;
public float speed;
public float[] amount;
}
using System;
using Sirenix.OdinInspector;
using UniRx;
using UnityEngine;
namespace Heroes
{
[CreateAssetMenu(fileName = "New Hero Class", menuName = "Hero/Hero Class")]
public class HeroClass : ScriptableObject
{
using System;
using UniRx;
using UniRx.Triggers;
using UnityEngine;
namespace Heroes
{
public class Hero : MonoBehaviour
{
public HeroClass myHeroClass;
using UnityEngine;
using Sirenix.OdinInspector;
using UnityEngine.UI;
using TMPro;
public class PlayerScript : MonoBehaviour
{
#region _PROPERTIES
#region Stats Properties
[BoxGroup("Base", centerLabel: true)]