public void SetVaribles(float maxTime, float minTime, int speed, OBJECTDIRECTION direction) { //assign the settings for the spawner m_MaxTime = maxTime; m_MinTime = minTime; m_speed = speed; m_Direction = direction; }
private void MoveToPool() { // move it back to the pool. // Get the original position transform.position = m_ObjectPool.PoolPostition(gameObject); // Reset the Rotation m_CarDirection = OBJECTDIRECTION.MOVING_RIGHT; RotateCar(); // change the state to idel m_CarState = CARSTATE.IDEL; }