Exemplo n.º 1
0
        public override void Init()
        {
            //--- init person boss data
            //System.Random rng = new System.Random();
            TypePrefabName = TypePrefab.ToString();

            if (Level == 0)
            {
                Level = UnityEngine.Random.Range(1, 7);
                //Level = rng.Next(1, 7);
            }
            if (Life == 0)
            {
                Life = Level * 10;
            }
            Speed = Level;

            if (m_ColorRender != Color.clear)
            {
                return;
            }

            InitColor();

            //#fix load
            if (IsCanSetTargetPosition && IsReality)
            {
                SetTargetPosition();
            }

            IsLoadad = true;
        }
Exemplo n.º 2
0
 public GameDataBoss() : base()
 {
     //TypePoolPrefabName = TypePoolPrefab.ToString();
     TypePrefabName = TypePrefab.ToString();
     //Init();
 }
Exemplo n.º 3
0
 public GameDataNPC() : base()
 {
     Speed = 1;
     TypePoolPrefabName = TypePoolPrefab.ToString();
     TypePrefabName     = TypePrefab.ToString();
 }
Exemplo n.º 4
0
 public ObjectData()
 {
     TypePoolPrefabName = TypePoolPrefab.ToString();
     TypePrefabName     = TypePrefab.ToString();
 }
Exemplo n.º 5
0
 public override void Init()
 {
     base.Init();
     TypePrefabName = TypePrefab.ToString();
 }
Exemplo n.º 6
0
 public FloreData() : base()
 {
     TypePrefabName = TypePrefab.ToString();
 }