public override void Initialise(Bounds bounds, AliveAction.Type type) { base.Initialise(bounds, type); if (Random.value > 0.5f) { m_Axis = Vector3.forward * (Random.value > 0.5f ? 1.0f : -1.0f); m_Extents = m_Bounds.extents.x; } else { m_Axis = Vector3.right * (Random.value > 0.5f ? 1.0f : -1.0f); m_Extents = m_Bounds.extents.z; } switch (m_Type) { case AliveAction.Type.Creature: { m_TypeScale = 1.0f; break; } case AliveAction.Type.Robot: { m_TypeScale = 1.3f; break; } } }
public override void Initialise(Bounds bounds, AliveAction.Type type) { base.Initialise(bounds, type); switch (m_Type) { case AliveAction.Type.Creature: { m_TypeScale = 1.0f; break; } case AliveAction.Type.Robot: { m_TypeScale = 1.8f; break; } } }
public override void Initialise(Bounds bounds, AliveAction.Type type) { base.Initialise(bounds, type); m_Angle = Random.Range(30.0f, 45.0f) * (Random.value > 0.5f ? 1.0f : -1.0f); switch (m_Type) { case AliveAction.Type.Creature: { m_TypeScale = 1.0f; m_TypeClamp = 1.0f; break; } case AliveAction.Type.Robot: { m_TypeScale = 1.8f; m_TypeClamp = 0.8f; break; } } }
public virtual void Initialise(Bounds bounds, AliveAction.Type type) { m_Bounds = bounds; m_Type = type; }