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; }
public GameDataBoss() : base() { //TypePoolPrefabName = TypePoolPrefab.ToString(); TypePrefabName = TypePrefab.ToString(); //Init(); }
public GameDataNPC() : base() { Speed = 1; TypePoolPrefabName = TypePoolPrefab.ToString(); TypePrefabName = TypePrefab.ToString(); }
public ObjectData() { TypePoolPrefabName = TypePoolPrefab.ToString(); TypePrefabName = TypePrefab.ToString(); }
public override void Init() { base.Init(); TypePrefabName = TypePrefab.ToString(); }
public FloreData() : base() { TypePrefabName = TypePrefab.ToString(); }