protected virtual void OnEnable() { if (minLight == null) { minLight = GetComponent <MinLight>(); } movementType = MinMovementType.None; randomPosContainer = null; randomPosition = Vector3.zero; minLight.ChangeMinLightSpriteDirection(false); minLight.UpdateMinLightSpriteOrder(0); }
public void SetMovementType(MinMovementType movement) { randomPosContainer = null; randomPosition = Vector3.zero; movementType = movement; }