public void showEffectIndicator() { Debug.Log($"SingleStatus showEffect: {name} On {target.name}"); GameObject damageInfoGO = ObjectyManager.Instance.ObjectyPools[Constants.UI.DamageInfoPoolName].Spawn(Constants.UI.DamageInfoPoolSpawningName); DamageTextFollower damageTextFollower = damageInfoGO.GetComponent <DamageTextFollower>(); damageTextFollower.isDamageInfo = false; damageTextFollower.Init(par: target.GetComponent <Entity>().moveInfoCanvas.transform, status: this); }
private void ShowDamangeNumber(int amount) { Debug.Log($"Entity {gameObject.name} ShowDamangeNumber: {amount}"); // GameObject damageInfoGO = Instantiate(damageInfoPrefab, transform.position, transform.rotation); GameObject damageInfoGO = ObjectyManager.Instance.ObjectyPools[Constants.UI.DamageInfoPoolName].Spawn(Constants.UI.DamageInfoPoolSpawningName); DamageTextFollower damageTextFollower = damageInfoGO.GetComponent <DamageTextFollower>(); damageTextFollower.isDamageInfo = true; damageTextFollower.Init(par: moveInfoCanvas.transform, dmg: amount); }