예제 #1
0
 public override void OnEnable()
 {
     base.OnEnable();
     magicIndicator = ObjectPool.Instance.SpawnComponent <MagicIndicator>(magicIndicatorPrefab, default(Vector3), default(Quaternion), MagicLocater.Instance.trs);
     magicIndicator.trs.localScale       = magicIndicatorPrefab.trs.localScale;
     magicIndicator.trs.localEulerAngles = Vector3.right * 90;
 }
예제 #2
0
 public virtual void OnEnable()
 {
     magicIndicator = GameManager.GetSingleton <ObjectPool>().SpawnComponent <MagicIndicator>(magicIndicatorPrefab, default(Vector3), default(Quaternion), GameManager.GetSingleton <MagicLocater>().trs);
     magicIndicator.trs.localScale       = magicIndicatorPrefab.trs.localScale;
     magicIndicator.trs.localEulerAngles = Vector3.right * 90;
     GameManager.updatables = GameManager.updatables.Add(this);
 }