void Froze(Transform TransformEnemy) { e = TransformEnemy.GetComponent <enemy>(); if (e.hasSpeedUp()) { return; } Vector3 Position = transform.position + new Vector3(0, 2.3f, 0); GameObject Ice = Instantiate(FrozeEffect, Position, Quaternion.identity); Ice.transform.parent = TransformEnemy; e.Stop(FreezeTime, OfflineIncreseDamageRate, Ice); }